Re: Fix shell32.ExtractIcon with A->W and 32 -> 16 calls
On December 11, 2002 04:47 pm, Rolf Kalbermatter wrote: Patrik, How come winapi_check did not pick up this one as a bad 32->16 cross call?
/************************************************************************* * ExtractIconA [SHELL32.@] - * - * FIXME - * if the filename is not a file return 1 */ -HICON WINAPI ExtractIconA( HINSTANCE hInstance, LPCSTR lpszExeFileName, - UINT nIconIndex ) -{ HGLOBAL16 handle = InternalExtractIcon16(HINSTANCE_16(hInstance),lpszExeFileName,nIconIndex, 1); - TRACE("\n"); - if( handle ) - { - HICON16* ptr = (HICON16*)GlobalLock16(handle); - HICON16 hIcon = *ptr; - - GlobalFree16(handle); - return HICON_32(hIcon); - } - return 0;
-- Dimi.
participants (1)
-
Dimitrie O. Paun