WIN32: Fix bug in SHGetFolderPathFunc fallback code
This commit is contained in:
parent
ff5700cd44
commit
cdcdb26ac8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue