From 3ed8cc5769f17373ca8f64ab15a868c74b6cb089 Mon Sep 17 00:00:00 2001 From: Kai Morich Date: Mon, 15 Oct 2001 17:50:21 +0000 Subject: [PATCH] InternalExtractIcon16 forgot to close file handle. --- dlls/shell32/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shell32/shell.c b/dlls/shell32/shell.c index de32b1f6b0..65aa110b79 100644 --- a/dlls/shell32/shell.c +++ b/dlls/shell32/shell.c @@ -503,7 +503,7 @@ HGLOBAL16 WINAPI InternalExtractIcon16(HINSTANCE16 hInstance, if( !n ) return 0; - hFile = OpenFile( lpszExeFileName, &ofs, OF_READ ); + hFile = OpenFile( lpszExeFileName, &ofs, OF_READ|OF_EXIST ); hRet = GlobalAlloc16( GMEM_FIXED | GMEM_ZEROINIT, sizeof(HICON16)*n); RetPtr = (HICON16*)GlobalLock16(hRet);