https://bugs.winehq.org/show_bug.cgi?id=46098
--- Comment #7 from Georg Sauthoff mail@georg.so --- (In reply to Alexandre Julliard from comment #2)
Actually your test case fails on Windows too, so it's Wine-staging that's more correct (though the error code seems different).
So I ran this test-case again today under native-windows (windows 8 professional, 64 bit, bare-metal, test-case cross-compiled on Fedora with mingw) and it does fail with:
2nd ftruncate before unmap: Permission denied
Thus, there was some human error in the execution of my previous experiment and I take my original comment back regarding the windows behavior.
Since my main use case for Wine is to conveniently run cross-compiled unit-test suites (e.g. when it's simpler to integrate in a CI environment or quicker during development) I appreciate that Wine now behaves more like native Windows.