From 616592c3306b85ab10f09a08c0be9e3596626250 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Mon, 13 Dec 2021 18:18:08 +0200 Subject: [PATCH] Fixed "DisplayVersion" not created in program uninstallation registry entry (microsoft/winget-pkgs/pull/37596) --- ep_setup/ep_setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ep_setup/ep_setup.c b/ep_setup/ep_setup.c index 886e038..b7c5e55 100644 --- a/ep_setup/ep_setup.c +++ b/ep_setup/ep_setup.c @@ -96,7 +96,7 @@ BOOL SetupUninstallEntry(BOOL bInstall, WCHAR* wszPath) { PathRemoveFileSpecW(wszPath); wcscat_s(wszPath, MAX_PATH, L"\\" _T(PRODUCT_NAME) L".amd64.dll"); - HMODULE hEP = LoadLibraryExW(wszPath, NULL, LOAD_LIBRARY_AS_DATAFILE); + HMODULE hEP = LoadLibraryExW(wszPath + 1, NULL, LOAD_LIBRARY_AS_DATAFILE); if (hEP) { DWORD dwLeftMost = 0;