diff --git a/dll/win32/shell32/folders/desktop.cpp b/dll/win32/shell32/folders/desktop.cpp index 119df7a01f2..4311e12f4e5 100644 --- a/dll/win32/shell32/folders/desktop.cpp +++ b/dll/win32/shell32/folders/desktop.cpp @@ -679,7 +679,7 @@ HRESULT WINAPI CDesktopFolder::GetDisplayNameOf(PCUITEMID_CHILD pidl, DWORD dwFl if ((clsid = _ILGetGUIDPointer (pidl))) { - if (GET_SHGDN_FOR (dwFlags) & SHGDN_FORPARSING) + if (GET_SHGDN_FOR (dwFlags) == SHGDN_FORPARSING) { int bWantsForParsing; diff --git a/dll/win32/shell32/folders/mycomp.cpp b/dll/win32/shell32/folders/mycomp.cpp index 828abacd5ab..4b098d9f236 100644 --- a/dll/win32/shell32/folders/mycomp.cpp +++ b/dll/win32/shell32/folders/mycomp.cpp @@ -491,7 +491,7 @@ HRESULT WINAPI CDrivesFolder::GetDisplayNameOf(PCUITEMID_CHILD pidl, DWORD dwFla 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";