http://bugs.winehq.org/show_bug.cgi?id=11170 Summary: LoadLibrary behaviour is different from the windows one Product: Wine Version: 0.9.52. Platform: All OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs(a)winehq.org ReportedBy: hules(a)free.fr Under wine (version 0.9.52), attempts to open an .exe file with LoadLibrary fails (with error ERROR_INVALID_ADDRESS), while it succeeds on windows (all versions): The following example shows that different behaviour: (I compiled it with i386-mingw32-gcc ./test.c && cp a.exe b.exe ) #include <stdio.h> #include <stdlib.h> #include <windows.h> int main() { const char *fname = "b.exe"; HMODULE hmod = LoadLibrary(fname); //HMODULE hmod = LoadLibraryEx(fname_, NULL, LOAD_LIBRARY_AS_DATAFILE); if (hmod) { fprintf(stderr, "loaded at %p\n", (void*)hmod); } else { fprintf(stderr, "error %x\n", (int)GetLastError()); } return 0; } -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.