Lands #4429 by fixing windows/messagebox with EXITFUNC=none
commit
9ede2c2ca5
|
@ -86,7 +86,7 @@ EOS
|
|||
call [ebp+8] ;ExitProcess/Thread(0)
|
||||
EOS
|
||||
|
||||
# if exit is set to seh, overrule
|
||||
# if exit is set to seh or none, overrule
|
||||
if datastore['EXITFUNC'].upcase.strip == "SEH"
|
||||
# routine to exit via exception
|
||||
doexit = <<EOS
|
||||
|
@ -94,6 +94,11 @@ EOS
|
|||
call eax
|
||||
EOS
|
||||
getexitfunc = ''
|
||||
elsif datastore['EXITFUNC'].upcase.strip == "NONE"
|
||||
doexit = <<-EOS
|
||||
nop
|
||||
EOS
|
||||
getexitfunc = ''
|
||||
end
|
||||
|
||||
# Generate code to get ptr to Title
|
||||
|
@ -232,6 +237,7 @@ start_main:
|
|||
push 0x41206c6c
|
||||
push 0x642e3233
|
||||
push 0x72657375 ;user32.dll
|
||||
xor bl,bl ;make sure we have a null byte
|
||||
mov [esp+0xA],bl ;null byte
|
||||
mov esi,esp ;put pointer to string on top of stack
|
||||
push esi
|
||||
|
|
Loading…
Reference in New Issue