https://bugs.winehq.org/show_bug.cgi?id=45943
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr.caban@gmail.com
--- Comment #19 from Piotr Caban piotr.caban@gmail.com --- The application is truncating pointer: Call msvcr100._wfopen(11586740 L"C:\users\piotr\Temp\05fcttmp.fdl",115612d0 L"wb") ret=140497123 Ret msvcr100._wfopen() retval=7fac70a367a0 ret=140497123 Call msvcr100.fwrite(00232e70,00000001,00000001,70a367a0) ret=1404801bd trace:seh:NtRaiseException code=c0000005 flags=0 addr=0x7bc45d70 ip=7bc45d70 tid=002a
The FILE* returned in this case is part of _iob structure (static variable in the dll). Loading builtin dll in first 4gb of memory should hide/fix this bug. I haven't done proper testing but it looks like Windows is loading the dll in first 4gb of memory.