Browse Source

Bug fix for installer/uninstaller not working and small improvements.

pull/20/head
Valentin Radu 5 years ago
parent
commit
cd2a543f3e
  1. 3
      ExplorerPatcher/main.c
  2. 3
      ExplorerPatcherLibrary/dllmain.c

3
ExplorerPatcher/main.c

@ -109,7 +109,6 @@ int install_uninstall() @@ -109,7 +109,6 @@ int install_uninstall()
szReadName,
(LPDWORD)(&dwReadBytes)
);
RegCloseKey(hKey);
if (!wcscmp(szFileName, szReadName))
{
if (RegDeleteValue(
@ -151,8 +150,10 @@ int install_uninstall() @@ -151,8 +150,10 @@ int install_uninstall()
MB_ICONINFORMATION
);
}
RegCloseKey(hKey);
return 1;
error_setup:
RegCloseKey(hKey);
#ifdef UNICODE
swprintf(buffer, 200,
#else

3
ExplorerPatcherLibrary/dllmain.c

@ -559,8 +559,6 @@ INT64 CTray_HandleGlobalHotkeyHook( @@ -559,8 +559,6 @@ INT64 CTray_HandleGlobalHotkeyHook(
return 0;
}
InterlockedExchange64(&lockEnsureWinXHotkeyOnlyOnce, 1);
HWND hWnd = GetForegroundWindow();
HWND g_ProgWin = FindWindowEx(
NULL,
@ -595,6 +593,7 @@ INT64 CTray_HandleGlobalHotkeyHook( @@ -595,6 +593,7 @@ INT64 CTray_HandleGlobalHotkeyHook(
ip[3].ki.dwExtraInfo = 0;
ip[3].ki.wVk = VK_LWIN;
ip[3].ki.dwFlags = KEYEVENTF_KEYUP;
InterlockedExchange64(&lockEnsureWinXHotkeyOnlyOnce, 1);
SendInput(4, ip, sizeof(INPUT));
SetForegroundWindow(hWnd);

Loading…
Cancel
Save