Commit fac28839 authored by Stephan BEUZE's avatar Stephan BEUZE Committed by Alexandre Julliard

- 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.
parent 021604c6
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment