Browse Source

Fixed "DisplayVersion" not created in program uninstallation registry entry (microsoft/winget-pkgs/pull/37596)

pull/886/head 22000.348.40.10_dfd7030
Valentin Radu 4 years ago
parent
commit
dfd703004c
  1. 6
      ep_setup/ep_setup.c

6
ep_setup/ep_setup.c

@ -94,9 +94,9 @@ BOOL SetupUninstallEntry(BOOL bInstall, WCHAR* wszPath)
} }
if (!dwLastError) if (!dwLastError)
{ {
PathRemoveFileSpecW(wszPath); PathRemoveFileSpecW(wszPath + 1);
wcscat_s(wszPath, MAX_PATH, L"\\" _T(PRODUCT_NAME) L".amd64.dll"); wcscat_s(wszPath + 1, MAX_PATH - 2, 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) if (hEP)
{ {
DWORD dwLeftMost = 0; DWORD dwLeftMost = 0;

Loading…
Cancel
Save