Author: gadamopoulos
Date: Fri Apr  3 10:20:30 2015
New Revision: 67015

URL: http://svn.reactos.org/svn/reactos?rev=67015&view=rev
Log:
[SHELL32]
- CControlPanelFolder: Explicitly check the pidl type in GetAttributesOf. Do 
not call the generic SHELL32_GetItemAttributes for cpl items.

Modified:
    trunk/reactos/dll/win32/shell32/folders/CControlPanelFolder.cpp

Modified: trunk/reactos/dll/win32/shell32/folders/CControlPanelFolder.cpp
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/folders/CControlPanelFolder.cpp?rev=67015&r1=67014&r2=67015&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/folders/CControlPanelFolder.cpp     
[iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/folders/CControlPanelFolder.cpp     
[iso-8859-1] Fri Apr  3 10:20:30 2015
@@ -478,7 +478,12 @@
         while(cidl > 0 && *apidl)
         {
             pdump(*apidl);
-            SHELL32_GetItemAttributes(this, *apidl, rgfInOut);
+            if (_ILIsCPanelStruct(*apidl))
+                *rgfInOut &= SFGAO_CANLINK;
+            else if (_ILIsSpecialFolder(*apidl))
+                SHELL32_GetItemAttributes(this, *apidl, rgfInOut);
+            else
+                ERR("Got an unkown pidl here!\n");
             apidl++;
             cidl--;
         }


Reply via email to