- 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.
This commit is contained in:
Stephan BEUZE 2003-07-03 18:11:01 +00:00 committed by Alexandre Julliard
parent 021604c600
commit fac288394a

View File

@ -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();