From ac8b997f4c5746a4a3a3ff5c78745f9b0ee3ba1c Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Sun, 14 Nov 2021 20:09:38 +0200 Subject: [PATCH] Fixed automatic updates --- ExplorerPatcher/updates.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExplorerPatcher/updates.c b/ExplorerPatcher/updates.c index 512909d..0423f54 100644 --- a/ExplorerPatcher/updates.c +++ b/ExplorerPatcher/updates.c @@ -129,7 +129,7 @@ BOOL IsUpdateAvailableHelper(char* url, char* szCheckAgainst, DWORD dwUpdateTime { WCHAR wszPath[MAX_PATH]; ZeroMemory(wszPath, MAX_PATH * sizeof(WCHAR)); - SHGetFolderPathW(NULL, SPECIAL_FOLDER, NULL, SHGFP_TYPE_CURRENT, wszPath); + SHGetFolderPathW(NULL, SPECIAL_FOLDER_LEGACY, NULL, SHGFP_TYPE_CURRENT, wszPath); wcscat_s(wszPath, MAX_PATH, _T(APP_RELATIVE_PATH)); BOOL bRet = CreateDirectoryW(wszPath, NULL); if (bRet || (!bRet && GetLastError() == ERROR_ALREADY_EXISTS))