"Possible" bug when calling StdCall PBLibrary func
Posted: Tue Feb 07, 2006 11:44 pm
Using this as library source:
And this as .Desc file (note the StdCall flag):
Works when called through a variable:
But fails if the composed string is given directly as an argument:
(BTW, this is the reason I haven't released TailBite yet...)
Code: Select all
format MS COFF
Public PB_Test
Extrn _MessageBoxA@16
section '.text' code readable executable
PB_Test:
mov eax, [esp+4]
push 0
push eax
push eax
push 0
call _MessageBoxA@16
ret 4
Code: Select all
ASM
;
1
USER32
;
OBJ
;
0
;
Test.chm
;
Test,String, (String.s)
None | StdCall
;
Code: Select all
text.s = "This is "+Str(1)+" test"
Test(text)
Code: Select all
Test("This is "+Str(1)+" test")