diff --git a/windows-snapshot-tool/src/main.cpp b/windows-snapshot-tool/src/main.cpp index 8c02b03..36b1813 100644 --- a/windows-snapshot-tool/src/main.cpp +++ b/windows-snapshot-tool/src/main.cpp @@ -69,8 +69,8 @@ int WINAPI WinMain (HINSTANCE hThisInstance, /* register hotkey. 0x59 is 'y' so win+y or print * * see: https://docs.microsoft.com/de-de/windows/desktop/inputdev/virtual-key-codes */ - if (!RegisterHotKey(Hwnd, WM_HOTKEY_FREEZE, MOD_WIN, 0x59) - || !RegisterHotKey(Hwnd, WM_HOTKEY_FREEZE, 0, 0x2c)) { + if (!RegisterHotKey(NULL, WM_HOTKEY_FREEZE, MOD_WIN, 0x59) + || !RegisterHotKey(NULL, WM_HOTKEY_FREEZE, 0, 0x2c)) { FatalAppExit(0, TEXT("Couldn't register hotkey!")); }