[PATCH v3 1/8] comctl32/tests: Test for LB_SETCOUNT without LBS_NODATA

Gabriel Ivăncescu gabrielopcode at gmail.com
Thu Nov 8 05:39:48 CST 2018


Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---

v3: Fix the tests on broken Windows versions (only on WOW64) and place the
tests at the beginning of the patchset. Hopefully this should be enough now.

 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 d4bb2cc..60aa59a 100644
--- a/dlls/comctl32/tests/listbox.c
+++ b/dlls/comctl32/tests/listbox.c
@@ -1766,6 +1766,13 @@ static void test_set_count( void )
     GetUpdateRect( listbox, &r, TRUE );
     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 );
+    todo_wine ok( ret == LB_ERR, "expected %d, got %d\n", LB_ERR, ret );
+
     DestroyWindow( listbox );
     DestroyWindow( parent );
 }
-- 
2.19.1




More information about the wine-devel mailing list