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);