From fb604382b6fc0748e0b4d26b49124e202b628151 Mon Sep 17 00:00:00 2001 From: Gregor Schneider Date: Mon, 8 Dec 2008 17:02:19 +0000 Subject: [PATCH] Fix two duplicate checks - obviously copy/pasted, CIDs 74 and 75 svn path=/trunk/; revision=37941 --- reactos/dll/win32/imagehlp/modify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/imagehlp/modify.c b/reactos/dll/win32/imagehlp/modify.c index 5f61c77ff2d..fc340a787ab 100644 --- a/reactos/dll/win32/imagehlp/modify.c +++ b/reactos/dll/win32/imagehlp/modify.c @@ -1044,7 +1044,7 @@ DWORD IMAGEAPI MapFileAndCheckSumA( 0, 0, 0); - if (hMapping == 0) + if (BaseAddress == NULL) { CloseHandle(hMapping); CloseHandle(hFile); @@ -1110,7 +1110,7 @@ DWORD IMAGEAPI MapFileAndCheckSumW( 0, 0, 0); - if (hMapping == 0) + if (BaseAddress == NULL) { CloseHandle(hMapping); CloseHandle(hFile);