https://bugs.winehq.org/show_bug.cgi?id=37793
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |e5c39a565a4f1ff7db2f228253d | |43aa397dd3e2a Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #4 from Anastasius Focht focht@gmx.net --- Hello folks,
this was fixed by commit https://source.winehq.org/git/wine.git/commitdiff/e5c39a565a4f1ff7db2f228253... ("server: Enforce valid flags for file mappings."), part of Wine 2.17
Reduced test case for reproduce (payloads for original installer are 404).
--- snip --- /* x86_64-w64-mingw32-gcc bug37793.c -o bug37793.exe */ #include <windows.h> #include <stdio.h>
int main(void) { char szPath[MAX_PATH]; HANDLE hFile, hMapping;
GetModuleFileName(NULL, szPath, MAX_PATH); hFile = CreateFile(szPath, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); hMapping = CreateFileMapping(hFile, NULL, SEC_RESERVE | PAGE_READONLY, 0, 0, 0); if(!hMapping) { printf("Couldn't map file: 0x%x\n", GetLastError()); return -1; } printf("success!\n"); return 0; } --- snip ---
$ wine --version wine-4.21-138-g7ca1c4900e
Regards