[SHELL32]
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Tue, 28 Oct 2014 15:07:31 +0000 (15:07 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Tue, 28 Oct 2014 15:07:31 +0000 (15:07 +0000)
- Return a readable folder name when SHGDN_FORADDRESSBAR was specified
- We no longer show GUIDs in the address bar

svn path=/branches/shell-experiments/; revision=65072

dll/win32/shell32/folders/desktop.cpp
dll/win32/shell32/folders/mycomp.cpp

index 119df7a..4311e12 100644 (file)
@@ -679,7 +679,7 @@ HRESULT WINAPI CDesktopFolder::GetDisplayNameOf(PCUITEMID_CHILD pidl, DWORD dwFl
 
         if ((clsid = _ILGetGUIDPointer (pidl)))
         {
 
         if ((clsid = _ILGetGUIDPointer (pidl)))
         {
-            if (GET_SHGDN_FOR (dwFlags) & SHGDN_FORPARSING)
+            if (GET_SHGDN_FOR (dwFlags) == SHGDN_FORPARSING)
             {
                 int bWantsForParsing;
 
             {
                 int bWantsForParsing;
 
index 828abac..4b098d9 100644 (file)
@@ -491,7 +491,7 @@ HRESULT WINAPI CDrivesFolder::GetDisplayNameOf(PCUITEMID_CHILD pidl, DWORD dwFla
             clsid = _ILGetGUIDPointer (pidl);
             if (clsid)
             {
             clsid = _ILGetGUIDPointer (pidl);
             if (clsid)
             {
-                if (GET_SHGDN_FOR (dwFlags) & SHGDN_FORPARSING)
+                if (GET_SHGDN_FOR (dwFlags) == SHGDN_FORPARSING)
                 {
                     static const WCHAR clsidW[] = L"CLSID\\";
                     static const WCHAR shellfolderW[] = L"\\shellfolder";
                 {
                     static const WCHAR clsidW[] = L"CLSID\\";
                     static const WCHAR shellfolderW[] = L"\\shellfolder";