From 1293634a0683513de5a88fc11c3f75aa4eedadfe Mon Sep 17 00:00:00 2001 From: James Tabor Date: Mon, 14 Oct 2013 21:51:07 +0000 Subject: [PATCH] - Return the right error if hot key registered outside of the thread. svn path=/trunk/; revision=60676 --- reactos/win32ss/user/ntuser/hotkey.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/win32ss/user/ntuser/hotkey.c b/reactos/win32ss/user/ntuser/hotkey.c index 0b881c81398..c23cf3810b0 100644 --- a/reactos/win32ss/user/ntuser/hotkey.c +++ b/reactos/win32ss/user/ntuser/hotkey.c @@ -512,6 +512,7 @@ NtUserRegisterHotKey(HWND hWnd, /* Fix wine msg "Window on another thread" test_hotkey */ if (pWnd->head.pti != gptiCurrent) { + EngSetLastError(ERROR_WINDOW_OF_OTHER_THREAD); WARN("Must be from the same Thread.\n"); goto cleanup; }