Dmitry Timoshkov : user32/tests: Actually test ShowWindow() return value.

Alexandre Julliard julliard at winehq.org
Thu Feb 3 16:06:57 CST 2022


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Thu Feb  3 20:27:20 2022 +0300

user32/tests: Actually test ShowWindow() return value.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/tests/win.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index 5ce7eb02f1c..8ec6d8af064 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -7232,7 +7232,7 @@ static void test_ShowWindow(void)
     ok(EqualRect(&rc, &rcNonClient), "expected %s, got %s\n",
        wine_dbgstr_rect(&rcNonClient), wine_dbgstr_rect(&rc));
 
-    ShowWindow(hwnd, SW_RESTORE);
+    ret = ShowWindow(hwnd, SW_RESTORE);
     ok(ret, "not expected ret: %lu\n", ret);
     style = GetWindowLongA(hwnd, GWL_STYLE);
     ok(!(style & WS_DISABLED), "window should not be disabled\n");
@@ -7246,7 +7246,7 @@ static void test_ShowWindow(void)
     ok(EqualRect(&rcClient, &rc), "expected %s, got %s\n",
        wine_dbgstr_rect(&rcClient), wine_dbgstr_rect(&rc));
 
-    ShowWindow(hwnd, SW_MAXIMIZE);
+    ret = ShowWindow(hwnd, SW_MAXIMIZE);
     ok(ret, "not expected ret: %lu\n", ret);
     style = GetWindowLongA(hwnd, GWL_STYLE);
     ok(!(style & WS_DISABLED), "window should not be disabled\n");
@@ -7264,7 +7264,7 @@ static void test_ShowWindow(void)
     ok(EqualRect(&rcResized, &rc), "expected %s, got %s\n",
        wine_dbgstr_rect(&rcResized), wine_dbgstr_rect(&rc));
 
-    ShowWindow(hwnd, SW_RESTORE);
+    ret = ShowWindow(hwnd, SW_RESTORE);
     ok(ret, "not expected ret: %lu\n", ret);
     style = GetWindowLongA(hwnd, GWL_STYLE);
     ok(!(style & WS_DISABLED), "window should not be disabled\n");




More information about the wine-cvs mailing list