Browse Source

Close registry key in GUI

pull/91/head
Valentin-Gabriel Radu 4 years ago committed by GitHub
parent
commit
958a9a6b20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      ExplorerPatcher/GUI.c

8
ExplorerPatcher/GUI.c

@ -603,7 +603,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) @@ -603,7 +603,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
if (d) *d = 0;
wchar_t* p = wcschr(name, L'"');
if (p) *p = 0;
HKEY hKey;
HKEY hKey = NULL;
DWORD dwDisposition;
DWORD dwSize = sizeof(DWORD);
DWORD value = FALSE;
@ -1159,7 +1159,7 @@ static LRESULT CALLBACK GUI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPAR @@ -1159,7 +1159,7 @@ static LRESULT CALLBACK GUI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPAR
__declspec(dllexport) int ZZGUI(HWND hWnd, HINSTANCE hInstance, LPSTR lpszCmdLine, int nCmdShow)
{
HKEY hKey;
HKEY hKey = NULL;
DWORD dwDisposition;
DWORD dwSize = sizeof(DWORD);
RegCreateKeyExW(
@ -1193,6 +1193,10 @@ __declspec(dllexport) int ZZGUI(HWND hWnd, HINSTANCE hInstance, LPSTR lpszCmdLin @@ -1193,6 +1193,10 @@ __declspec(dllexport) int ZZGUI(HWND hWnd, HINSTANCE hInstance, LPSTR lpszCmdLin
stdout
);
}
if (hKey)
{
RegCloseKey(hKey);
}
printf("Started \"GUI\" thread.\n");

Loading…
Cancel
Save