From 08ce61d1c26dfbe15377988d557972dd7b3254ed Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Fri, 27 Jun 2003 20:15:17 +0000 Subject: [PATCH] CreateFileMapping Patch by Hartmut Birr for MSYS applications. (No they still dont work) svn path=/trunk/; revision=4979 --- reactos/lib/kernel32/mem/section.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/lib/kernel32/mem/section.c b/reactos/lib/kernel32/mem/section.c index 345c92cfbeb..1430644b9ad 100644 --- a/reactos/lib/kernel32/mem/section.c +++ b/reactos/lib/kernel32/mem/section.c @@ -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);