Module: wine Branch: master Commit: 2e99817a406bc3ff957fa875e143111ab43a5b6b URL: http://source.winehq.org/git/wine.git/?a=commit;h=2e99817a406bc3ff957fa875e1...
Author: Rob Shearman rob@codeweavers.com Date: Fri Feb 15 10:06:38 2008 +0000
wininet: Fix the return value check of SHGetSpecialFolderPathW in URLCacheContainers_CreateDefaults.
It returns a BOOL, not an HRESULT.
---
dlls/wininet/urlcache.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c index 06dfd85..24e5b9d 100644 --- a/dlls/wininet/urlcache.c +++ b/dlls/wininet/urlcache.c @@ -543,7 +543,7 @@ void URLCacheContainers_CreateDefaults(void) WCHAR wszMutexName[MAX_PATH]; int path_len, suffix_len;
- if (FAILED(SHGetSpecialFolderPathW(NULL, wszCachePath, DefaultContainerData[i].nFolder, TRUE))) + if (!SHGetSpecialFolderPathW(NULL, wszCachePath, DefaultContainerData[i].nFolder, TRUE)) { ERR("Couldn't get path for default container %u\n", i); continue;