[Bug 37793] FIFA Online 3 launcher crashes on startup ('SEC_RESERVE' attribute has no effect for file mapping objects that are backed by physical files)
WineHQ Bugzilla
wine-bugs at winehq.org
Fri Dec 6 16:18:01 CST 2019
https://bugs.winehq.org/show_bug.cgi?id=37793
Anastasius Focht <focht at gmx.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Fixed by SHA1| |e5c39a565a4f1ff7db2f228253d
| |43aa397dd3e2a
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Anastasius Focht <focht at gmx.net> ---
Hello folks,
this was fixed by commit
https://source.winehq.org/git/wine.git/commitdiff/e5c39a565a4f1ff7db2f228253d43aa397dd3e2a
("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
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list