From 2e99817a406bc3ff957fa875e143111ab43a5b6b Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Fri, 15 Feb 2008 10:06:38 +0000 Subject: [PATCH] wininet: Fix the return value check of SHGetSpecialFolderPathW in URLCacheContainers_CreateDefaults. It returns a BOOL, not an HRESULT. --- dlls/wininet/urlcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c index 06dfd85c18d..24e5b9db4b8 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;