* kernel32.cc (CreateFileMappingW): Fix bug in reserve/commit handling.
This commit is contained in:
parent
abbde48704
commit
2bc35e6299
@ -1,4 +1,8 @@
|
||||
2008-04-20 Corinna Vinschen <corinna@vinschen.de>
|
||||
2008-04-21 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* kernel32.cc (CreateFileMappingW): Fix bug in reserve/commit handling.
|
||||
|
||||
2008-04-21 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* Makefile.in (DLL_OFILES): Add kernel32.o.
|
||||
* autoload.cc (WSACloseEvent): Remove.
|
||||
|
@ -331,8 +331,8 @@ CreateFileMappingW (HANDLE hFile, LPSECURITY_ATTRIBUTES lpAttributes,
|
||||
lpAttributes
|
||||
? lpAttributes->lpSecurityDescriptor
|
||||
: NULL);
|
||||
if (!attribs)
|
||||
attribs = SEC_COMMIT;
|
||||
if (!(attribs & (SEC_RESERVE | SEC_COMMIT)))
|
||||
attribs |= SEC_COMMIT;
|
||||
if (hFile == INVALID_HANDLE_VALUE)
|
||||
hFile = NULL;
|
||||
status = NtCreateSection (§, access, &attr, psize, prot, attribs, hFile);
|
||||
|
Loading…
x
Reference in New Issue
Block a user