Fixes in shell32_main.c

BiGgUn fbiggun at hotmail.com
Wed Jul 2 04:48:58 CDT 2003


Changelog:
   - Fixed iIndex use in SHGetFileInfoA
     (as of MSDN, iIndex is copied in the iIcon field of psfi)
   - Remove DLL_THREAD_ATTACH and DLL_THREAD_DETACH cases.
     (Dmitry Timoshkov 's patch for  performance improving)

Stephan BEUZE

Index: dlls/shell32/shell32_main.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shell32_main.c,v
retrieving revision 1.115
diff -u -r1.115 shell32_main.c
--- dlls/shell32/shell32_main.c 13 May 2003 22:19:01 -0000      1.115
+++ dlls/shell32/shell32_main.c 2 Jul 2003 09:31:54 -0000
@@ -387,7 +387,7 @@
          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);
@@ -1000,12 +1000,6 @@
            SYSTRAY_Init();
            InitChangeNotifications();
            SHInitRestricted(NULL, NULL);
-           break;
-
-         case DLL_THREAD_ATTACH:
-           break;
-
-         case DLL_THREAD_DETACH:
            break;

          case DLL_PROCESS_DETACH:



More information about the wine-patches mailing list