Vincent Povirk : user32/tests: Test registering the same hotkey hwnd/ id pair twice.

Alexandre Julliard julliard at winehq.org
Wed Jun 8 11:27:00 CDT 2011


Module: wine
Branch: master
Commit: a5719990b5c168fbc82e77a062ce95be6e0fcae0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a5719990b5c168fbc82e77a062ce95be6e0fcae0

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Thu May 26 13:56:47 2011 -0500

user32/tests: Test registering the same hotkey hwnd/id pair twice.

---

 dlls/user32/tests/msg.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index 12e606e..841af25 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -13192,6 +13192,10 @@ static void test_hotkey(void)
         DispatchMessage(&msg);
     ok_sequence(WmHotkeyReleaseLWIN, "window hotkey release LWIN", FALSE);
 
+    /* Register same hwnd/id with different key combination */
+    ret = RegisterHotKey(test_window, 5, 0, hotkey_letter);
+    ok(ret == TRUE, "expected TRUE, got %i, err=%d\n", ret, GetLastError());
+
     /* Unregister hotkey properly */
     SetLastError(0xdeadbeef);
     ret = UnregisterHotKey(test_window, 5);




More information about the wine-cvs mailing list