Author: tfaber
Date: Mon Nov 7 16:53:04 2011
New Revision: 54338
URL:
http://svn.reactos.org/svn/reactos?rev=54338&view=rev
Log:
[KERNEL32]
- Do not fail in CreateFileMappingW if write or execute access is requested
Modified:
trunk/reactos/dll/win32/kernel32/client/file/filemap.c
Modified: trunk/reactos/dll/win32/kernel32/client/file/filemap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/filemap.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/filemap.c [iso-8859-1] Mon Nov 7
16:53:04 2011
@@ -85,8 +85,7 @@
/* Give it */
DesiredAccess |= SECTION_MAP_EXECUTE;
}
-
- if ((flProtect != PAGE_READONLY) && (flProtect != PAGE_WRITECOPY))
+ else if ((flProtect != PAGE_READONLY) && (flProtect != PAGE_WRITECOPY))
{
SetLastError(ERROR_INVALID_PARAMETER);
return NULL;