- Return the right error if hot key registered outside of the thread.
authorJames Tabor <james.tabor@reactos.org>
Mon, 14 Oct 2013 21:51:07 +0000 (21:51 +0000)
committerJames Tabor <james.tabor@reactos.org>
Mon, 14 Oct 2013 21:51:07 +0000 (21:51 +0000)
svn path=/trunk/; revision=60676

reactos/win32ss/user/ntuser/hotkey.c

index 0b881c8..c23cf38 100644 (file)
@@ -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;
         }