Could you possibly create a small re-producable test-case that I can assemble and check ?
Thanks
Hi johnsa,
the bug is somehow related to the stack and calling INVOKE functions, when I simplify everything, the bug disappears, the StackFrame also disappears ...
0000000000401000 <mywindowtestbug.WinMainCRTStartup> | 33C9 | XOR ECX, ECX | mywindowTestBug.asm:205, ecx:PEB.InheritedAddressSpace
0000000000401002 | E8 7A040000 | CALL <mywindowtestbug.cuInit> |
0000000000401007 | 85C0 | TEST EAX, EAX | mywindowTestBug.asm:213, eax:WinMainCRTStartup
0000000000401009 | 0F85 E6020000 | JNE mywindowtestbug.4012F5 | mywindowTestBug.asm:214vs
0000000000401000 <mywindow1.WinMainCRTStartup> | 48:83EC 28 | SUB RSP, 28 | mywindow1.asm:212
0000000000401004 | 33C9 | XOR ECX, ECX | mywindow1.asm:217, ecx:PEB.InheritedAddressSpace
0000000000401006 | E8 FC040000 | CALL <mywindow1.cuInit> |
000000000040100B | 85C0 | TEST EAX, EAX | mywindow1.asm:218, eax:WinMainCRTStartup
000000000040100D | 0F85 45030000 | JNE mywindow1.401358 | mywindow1.asm:219in both cases
.686
.MMX
.XMM
.x64
option casemap:none
option win64:15;win64:11
option frame:auto;NOAUTO
option stackbase:rsp
option dotname
;option evex:1
option proc:private
;option LITERALS:ON
option PROCALIGN:16
OPTION FIELDALIGN:16; 1|2|4|8|16|32 - The default value is 1 or the value set by cmdline switch -ZpI use my set of SDK, but it does not affect the behavior .. Even two different file names, but the same source code, cause different assembly. I will try to make a working example ..