[ros-diffs] [tfaber] 54338: [KERNEL32] - Do not fail in CreateFileMappingW if write or execute access is requested
tfaber at svn.reactos.org
tfaber at svn.reactos.org
Mon Nov 7 16:53:05 UTC 2011
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/file/filemap.c?rev=54338&r1=54337&r2=54338&view=diff
==============================================================================
--- 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;
More information about the Ros-diffs
mailing list