https://bugs.winehq.org/show_bug.cgi?id=46251
--- Comment #3 from Peter De Schrijver p2@psychaos.be --- Apparently the symbol resolver routine expects to find KERNEL32.DLL as the second DLL in the chain. However on wine, it is the third. The following command sequence in wine-gdb makes the program work:
HOME\p2@sunshine:~/projects/winhello$ winedbg --gdb winhello_cr.exe Wine-gdb> break *0x0004000d3 Breakpoint 1 at 0x4000d3 Wine-gdb> c Continuing. Warning: not running or target is remote
Breakpoint 1, 0x004000d3 in ?? () Wine-gdb> stepi Warning: not running or target is remote 0x00420000 in ?? () Wine-gdb> break *0x000000000042001a Breakpoint 2 at 0x42001a Wine-gdb> c Continuing. Warning: not running or target is remote
Breakpoint 2, 0x0042001a in ?? () Wine-gdb> set $eax=*$eax Wine-gdb> c Continuing. 0048:0049: loads DLL @0x7e930000 (0<0>) 0048:0049: loads DLL @0x7e9b0000 (0<0>) 0048:0049: loads DLL @0x7ed10000 (0<0>) 0048:0049: loads DLL @0x7eae0000 (0<0>) 0048:0049: loads DLL @0x7e900000 (0<0>) 0048:0049: loads DLL @0x7e860000 (0<0>) 0048:0049: loads DLL @0x7e7c0000 (0<0>) 00000048:00000049: exit process (0) [Inferior 1 (Remote target) exited normally] Warning: not running or target is remote Wine-gdb>