mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2024-11-27 17:00:59 +01:00
Start: Fixed a bug that prevented the app from receiving settings change notifications when some registry keys were not available on the system
This commit is contained in:
parent
a418af36cb
commit
b669b0aca4
@ -1052,6 +1052,20 @@ int WINAPI wWinMain(
|
||||
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 (bOk)
|
||||
|
Loading…
Reference in New Issue
Block a user