http://bugs.winehq.org/show_bug.cgi?id=29899
Bug #: 29899 Summary: mapviewoffileex fails under certain condition with PE images Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: critical Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: tizbac2@gmail.com Classification: Unclassified
Created attachment 38887 --> http://bugs.winehq.org/attachment.cgi?id=38887 Test C program that fails on wine and works on windows
Using mapviewoffileex on the same pe image from 2 different file handles, on wine tries to relocate and if the dll does not have .reloc , it will fail , instead on windows the call to MapViewOfFileEx returns a valid pointer both times.
The attached C program together with a non relocatable DLL will fail on wine, but on windows xp it works and it gives both times "test succeeded"