http://bugs.winehq.org/show_bug.cgi?id=46254
--- Comment #13 from Janne janne.kekkonen@gmail.com --- I changed my test application slightly. With this modified application i can define the address of callback function.
Application was compiled with these parameters: gcc -m32 enumresource_2.c -o test.exe
On Wine result looks like this:
C:\temp>test 3405695742 argv[1]=3405695742 (cafecafe) wine: Unhandled page fault on execute access to CAFECAFE at address CAFECAFE (thread 012c), starting debugger.
Code: tmp=atoi(argv[1]); printf("argv[1]=%s (%x)\r\n",argv[1],tmp); ret = EnumResourceTypesW(NULL, (HANDLE) tmp, lval); printf("lParam:%d Ret val:%d LastError:%d\r\n",lval,ret,GetLastError());