diff --git a/ExplorerPatcher/updates.c b/ExplorerPatcher/updates.c index 9c5650d..512909d 100644 --- a/ExplorerPatcher/updates.c +++ b/ExplorerPatcher/updates.c @@ -303,7 +303,7 @@ BOOL IsUpdateAvailable(LPCWSTR wszDataStore, char* szCheckAgainst, BOOL* lpFail) BOOL bIsPolicyMatch = FALSE; CHAR szUpdateURL[MAX_PATH]; ZeroMemory(szUpdateURL, MAX_PATH * sizeof(CHAR)); - strcat_s(szUpdateURL, MAX_PATH, "https://github.com/valinet/ExplorerPatcher/releases/latest/download/"); + strcat_s(szUpdateURL, MAX_PATH, DEFAULT_UPDATE_URL); #ifdef UPDATES_VERBOSE_OUTPUT printf("[Updates] Checking against hash \"%s\"\n", szCheckAgainst); #endif @@ -361,7 +361,7 @@ BOOL UpdateProduct(LPCWSTR wszDataStore) BOOL bIsPolicyMatch = FALSE; CHAR szUpdateURL[MAX_PATH]; ZeroMemory(szUpdateURL, MAX_PATH * sizeof(CHAR)); - strcat_s(szUpdateURL, MAX_PATH, "https://github.com/valinet/ExplorerPatcher/releases/latest/download/"); + strcat_s(szUpdateURL, MAX_PATH, DEFAULT_UPDATE_URL); DWORD dwUpdateTimeout = UPDATES_DEFAULT_TIMEOUT; diff --git a/ExplorerPatcher/utility.h b/ExplorerPatcher/utility.h index c4fdfab..fe3c092 100644 --- a/ExplorerPatcher/utility.h +++ b/ExplorerPatcher/utility.h @@ -28,6 +28,7 @@ #define EP_CLSID "{D17F1E1A-5919-4427-8F89-A1A8503CA3EB}" #define DOSMODE_OFFSET 78 #define SETUP_UTILITY_NAME "ep_setup.exe" +#define DEFAULT_UPDATE_URL "https://github.com/valinet/ExplorerPatcher/releases/latest/download/" // This allows compiling with older Windows SDKs as well #ifndef DWMWA_USE_HOSTBACKDROPBRUSH