[PATCH 3/4] comctl32/tests: Test for LB_SETCOUNT without LBS_NODATA

Gabriel Ivăncescu gabrielopcode at gmail.com
Wed Sep 19 10:46:35 CDT 2018


Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
 dlls/comctl32/tests/listbox.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dlls/comctl32/tests/listbox.c b/dlls/comctl32/tests/listbox.c
index c9d13a8..16efa60 100644
--- a/dlls/comctl32/tests/listbox.c
+++ b/dlls/comctl32/tests/listbox.c
@@ -1753,6 +1753,13 @@ static void test_set_count( void )
     ok( !IsRectEmpty( &r ), "got empty rect\n");
 
     DestroyWindow( listbox );
+
+    listbox = create_listbox( LBS_OWNERDRAWFIXED | WS_CHILD | WS_VISIBLE, parent );
+
+    ret = SendMessageA( listbox, LB_SETCOUNT, 100, 0 );
+    ok( ret == LB_ERR, "expected %d, got %d\n", LB_ERR, ret );
+
+    DestroyWindow( listbox );
     DestroyWindow( parent );
 }
 
-- 
1.9.1




More information about the wine-devel mailing list