Thomas Faber : comctl32/tests: Test SB_GETPARTS with large wParam.

Alexandre Julliard julliard at winehq.org
Fri Nov 12 16:16:05 CST 2021


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

Author: Thomas Faber <thomas.faber at reactos.org>
Date:   Fri Nov 12 10:47:39 2021 -0500

comctl32/tests: Test SB_GETPARTS with large wParam.

Signed-off-by: Thomas Faber <thomas.faber at reactos.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/comctl32/tests/status.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/tests/status.c b/dlls/comctl32/tests/status.c
index f7eec88c613..5de96c19f03 100644
--- a/dlls/comctl32/tests/status.c
+++ b/dlls/comctl32/tests/status.c
@@ -253,7 +253,7 @@ static void test_status_control(void)
     HWND hWndStatus;
     int r;
     int nParts[] = {50, 150, -1};
-    int checkParts[] = {0, 0, 0};
+    int checkParts[] = {0, 0, 0, 0, 0};
     int borders[] = {0, 0, 0};
     RECT rc;
     CHAR charArray[20];
@@ -304,12 +304,20 @@ static void test_status_control(void)
     expect(5,LOWORD(r));
     expect(SBT_NOBORDERS,HIWORD(r));
 
-    /* Get parts and borders */
+    /* Get parts */
     r = SendMessageA(hWndStatus, SB_GETPARTS, 3, (LPARAM)checkParts);
     ok(r == 3, "Expected 3, got %d\n", r);
     expect(50,checkParts[0]);
     expect(150,checkParts[1]);
     expect(-1,checkParts[2]);
+    r = SendMessageA(hWndStatus, SB_GETPARTS, 5, (LPARAM)checkParts);
+    ok(r == 3, "Expected 3, got %d\n", r);
+    expect(50,checkParts[0]);
+    expect(150,checkParts[1]);
+    expect(-1,checkParts[2]);
+    expect(0,checkParts[3]);
+    expect(0,checkParts[4]);
+    /* Get borders */
     r = SendMessageA(hWndStatus, SB_GETBORDERS, 0, (LPARAM)borders);
     ok(r == TRUE, "Expected TRUE, got %d\n", r);
     expect(0,borders[0]);




More information about the wine-cvs mailing list