Browse Source

Start: Fixed a bug that prevented the app from receiving settings change notifications when some registry keys were not available on the system

pull/996/head
Valentin Radu 4 years ago
parent
commit
b669b0aca4
  1. 14
      ep_setup/ep_setup.c

14
ep_setup/ep_setup.c

@ -1052,6 +1052,20 @@ int WINAPI wWinMain(
CloseHandle(sei.hProcess); CloseHandle(sei.hProcess);
} }
} }
if (bOk && bInstall)
{
HKEY hKey = NULL;
RegCreateKeyExW(HKEY_CURRENT_USER, L"SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_READ, NULL, &hKey, NULL);
if (hKey && hKey != INVALID_HANDLE_VALUE)
{
RegCloseKey(hKey);
}
RegCreateKeyExW(HKEY_CURRENT_USER, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_READ, NULL, &hKey, NULL);
if (hKey && hKey != INVALID_HANDLE_VALUE)
{
RegCloseKey(hKey);
}
}
if (!bInstall) if (!bInstall)
{ {
if (bOk) if (bOk)

Loading…
Cancel
Save