From fac288394a143058486d405858a185697dfdd279 Mon Sep 17 00:00:00 2001 From: Stephan BEUZE Date: Thu, 3 Jul 2003 18:11:01 +0000 Subject: [PATCH] - Fixed iIndex use in SHGetFileInfoA (as of MSDN, iIndex is copied in the iIcon field of psfi) - Removed DLL_THREAD_ATTACH and DLL_THREAD_DETACH cases. --- dlls/shell32/shell32_main.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c index e959a751cfa..772dcb52981 100644 --- a/dlls/shell32/shell32_main.c +++ b/dlls/shell32/shell32_main.c @@ -392,7 +392,7 @@ DWORD WINAPI SHGetFileInfoA(LPCSTR path,DWORD dwFileAttributes, if (SUCCEEDED(hr)) { hr = IExtractIconA_GetIconLocation(pei, (flags & SHGFI_OPENICON)? GIL_OPENICON : 0,szLocation, MAX_PATH, &iIndex, &uFlags); - /* FIXME what to do with the index? */ + psfi->iIcon = iIndex; if(uFlags != GIL_NOTFILENAME) strcpy (psfi->szDisplayName, szLocation); @@ -1009,12 +1009,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) SHInitRestricted(NULL, NULL); break; - case DLL_THREAD_ATTACH: - break; - - case DLL_THREAD_DETACH: - break; - case DLL_PROCESS_DETACH: shell32_hInstance = 0; SIC_Destroy();