More SupportedAttr in SHELL32_GetItemAttributes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Added few missing attributes to list of supported ones.
They are harmless but our software depends on them.

Vitaliy Margolen

Changelog
  * dlls/shel32/shlfolder.c
    Add few SFGAO_CAN* attributes to supported list

    
Index: dlls/shell32/shlfolder.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shlfolder.c,v
retrieving revision 1.77
diff -u -r1.77 shlfolder.c
--- dlls/shell32/shlfolder.c    27 Feb 2003 21:04:38 -0000      1.77
+++ dlls/shell32/shlfolder.c    4 Mar 2003 07:27:07 -0000
@@ -323,14 +323,22 @@
  *  mycomputer:        0xb0000154      HASSUBFOLDER | FOLDER | FILESYSANCESTOR
  *  (seems to be default for shell extensions if no registry entry exists)
  *
+ * win2k:
+ *  folder:    0xF0400177      FILESYSTEM | HASSUBFOLDER | FOLDER | FILESYSANCESTOR | CANMONIKER
+ *  file:      0x40400177      FILESYSTEM | CANMONIKER
+ *  drive      0xF0400154      FILESYSTEM | HASSUBFOLDER | FOLDER | FILESYSANCESTOR | CANMONIKER | CANRENAME (LABEL)
+ *
  * This functions does not set flags!! It only resets flags when nessesary.
  */
 HRESULT SHELL32_GetItemAttributes (IShellFolder * psf, LPITEMIDLIST pidl, LPDWORD pdwAttributes)
 {
     GUID const *clsid;
     DWORD dwAttributes;
-    DWORD dwSupportedAttr=SFGAO_CANLINK |           /*0x00000004 */
+    DWORD dwSupportedAttr=SFGAO_CANCOPY |           /*0x00000001 */
+                          SFGAO_CANMOVE |           /*0x00000002 */
+                          SFGAO_CANLINK |           /*0x00000004 */
                           SFGAO_CANRENAME |         /*0x00000010 */
+                          SFGAO_CANDELETE |         /*0x00000020 */
                           SFGAO_HASPROPSHEET |      /*0x00000040 */
                           SFGAO_DROPTARGET |        /*0x00000100 */
                           SFGAO_READONLY |          /*0x00040000 */



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux