Fix shell32.ExtractIcon with A->W and 32 -> 16 calls
Dimitrie O. Paun
dpaun at rogers.com
Wed Dec 11 23:25:42 CST 2002
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.
More information about the wine-devel
mailing list