Kai Blin : imagehelp: Remove unused if() check in error path.
Module: wine Branch: master Commit: b52983cb9daa39934c993134a643b5fd5db4f789 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b52983cb9daa39934c993134a6... Author: Kai Blin <kai.blin(a)gmail.com> Date: Mon Jan 1 12:42:35 2007 +0100 imagehelp: Remove unused if() check in error path. --- dlls/imagehlp/access.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/dlls/imagehlp/access.c b/dlls/imagehlp/access.c index e303896..cca765e 100644 --- a/dlls/imagehlp/access.c +++ b/dlls/imagehlp/access.c @@ -164,7 +164,7 @@ BOOL WINAPI MapAndLoad(LPSTR pszImageNam goto Error; } - hFile = CreateFileA(szFileName, GENERIC_READ, 1, /* FIXME: FILE_SHARE_READ not defined */ + hFile = CreateFileA(szFileName, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL); if (hFile == INVALID_HANDLE_VALUE) { @@ -212,7 +212,6 @@ BOOL WINAPI MapAndLoad(LPSTR pszImageNam return TRUE; Error: - if (mapping) UnmapViewOfFile(mapping); if (hFile != INVALID_HANDLE_VALUE) CloseHandle(hFile); return FALSE; }
participants (1)
-
Alexandre Julliard