[PATCH 6/6] user32/tests: Test negative counts in LB_SETCOUNT
Gabriel Ivăncescu
gabrielopcode at gmail.com
Wed Feb 20 07:13:14 CST 2019
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
dlls/user32/tests/listbox.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/user32/tests/listbox.c b/dlls/user32/tests/listbox.c
index 5bdffc5..d15b18a 100644
--- a/dlls/user32/tests/listbox.c
+++ b/dlls/user32/tests/listbox.c
@@ -1893,6 +1893,11 @@ static void test_set_count( void )
GetUpdateRect( listbox, &r, TRUE );
ok( !IsRectEmpty( &r ), "got empty rect\n");
+ ret = SendMessageA( listbox, LB_SETCOUNT, -5, 0 );
+ ok( ret == 0, "got %d\n", ret );
+ ret = SendMessageA( listbox, LB_GETCOUNT, 0, 0 );
+ ok( ret == -5, "got %d\n", ret );
+
DestroyWindow( listbox );
for (i = 0; i < ARRAY_SIZE(styles); ++i)
--
2.20.1
More information about the wine-devel
mailing list