Commit 3ed8cc57 authored by Kai Morich's avatar Kai Morich Committed by Alexandre Julliard

InternalExtractIcon16 forgot to close file handle.

parent 541ff5fb
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment