1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2025-01-19 17:08:44 +01:00

Update URL is now defined instead of hardcoded

This commit is contained in:
Valentin Radu 2021-11-14 19:52:24 +02:00
parent 986fdbb3f1
commit f19e6ccd61
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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