mirror of
https://github.com/reactos/wine.git
synced 2025-02-09 21:55:12 +00:00
InternalExtractIcon16 forgot to close file handle.
This commit is contained in:
parent
541ff5fb9f
commit
3ed8cc5769
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user