WIN32: Fix bug in SHGetFolderPathFunc fallback code

This commit is contained in:
Cameron Cawley 2022-01-29 22:34:15 +00:00 committed by Filippos Karapetis
parent ff5700cd44
commit cdcdb26ac8

View File

@ -78,7 +78,7 @@ HRESULT SHGetFolderPathFunc(HWND hwnd, int csidl, HANDLE hToken, DWORD dwFlags,
#endif
);
if (pSHGetSpecialFolderPath)
return pSHGetSpecialFolderPath(hwnd, pszPath, csidl & !CSIDL_FLAG_MASK, csidl & CSIDL_FLAG_CREATE) ? S_OK : E_FAIL;
return pSHGetSpecialFolderPath(hwnd, pszPath, csidl & ~CSIDL_FLAG_MASK, csidl & CSIDL_FLAG_CREATE) ? S_OK : E_FAIL;
return E_NOTIMPL;
}