CreateFileMapping Patch by Hartmut Birr for MSYS applications.

(No they still dont work)

svn path=/trunk/; revision=4979
This commit is contained in:
Steven Edwards 2003-06-27 20:15:17 +00:00
parent fcde5c2e54
commit 08ce61d1c2

View file

@ -1,4 +1,4 @@
/* $Id: section.c,v 1.18 2003/01/15 21:24:34 chorns Exp $
/* $Id: section.c,v 1.19 2003/06/27 20:15:17 sedwards Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -59,7 +59,7 @@ CreateFileMappingA(HANDLE hFile,
&MaximumSize,
flProtect,
0,
hFile);
hFile==INVALID_HANDLE_VALUE ? NULL : hFile);
RtlFreeUnicodeString(&UnicodeName);
if (!NT_SUCCESS(Status))
{
@ -118,7 +118,7 @@ CreateFileMappingW(HANDLE hFile,
MaximumSizePointer,
flProtect,
0,
hFile);
hFile==INVALID_HANDLE_VALUE ? NULL : hFile);
if (!NT_SUCCESS(Status))
{
SetLastErrorByStatus(Status);