Bruno Jesus : user32/tests: Ensure ShowWindow returns false when window is already hidden.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Nov 25 12:54:01 CST 2014
Module: wine
Branch: master
Commit: 30120041c8b742354d8e5c5a99a6abd80f0fd3a8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=30120041c8b742354d8e5c5a99a6abd80f0fd3a8
Author: Bruno Jesus <00cpxxx at gmail.com>
Date: Mon Nov 24 23:54:45 2014 -0200
user32/tests: Ensure ShowWindow returns false when window is already hidden.
---
dlls/user32/tests/msg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index 28bb35e..778b3cf 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -4626,7 +4626,7 @@ static DWORD CALLBACK show_window_thread(LPVOID arg)
HWND hwnd = arg;
/* function will not return if ShowWindow(SW_HIDE) calls SendMessage() */
- ShowWindow(hwnd, SW_HIDE);
+ ok(ShowWindow(hwnd, SW_HIDE) == FALSE, "ShowWindow(SW_HIDE) expected FALSE\n");
return 0;
}
@@ -4669,7 +4669,7 @@ static void test_messages(void)
ok_sequence(WmHideOverlappedSeq, "ShowWindow(SW_HIDE):overlapped", FALSE);
/* test ShowWindow(SW_HIDE) on a hidden window - single threaded */
- ShowWindow(hwnd, SW_HIDE);
+ ok(ShowWindow(hwnd, SW_HIDE) == FALSE, "ShowWindow(SW_HIDE) expected FALSE\n");
flush_events();
ok_sequence(WmEmptySeq, "ShowWindow(SW_HIDE):overlapped", FALSE);
More information about the wine-cvs
mailing list