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

Dmitry Timoshkov dmitry at baikal.ru
Thu Feb 3 11:27:20 CST 2022


Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
 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 847093710a5..0c308861a4b 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -7288,7 +7288,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");
@@ -7302,7 +7302,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");
@@ -7320,7 +7320,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");
-- 
2.34.1




More information about the wine-devel mailing list