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

This commit is contained in:
Vincent Povirk 2011-05-26 13:56:47 -05:00 committed by Alexandre Julliard
parent 58ae3a7fcc
commit a5719990b5
1 changed files with 4 additions and 0 deletions

View File

@ -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);