Commit 20c0dda0 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

user32/tests: Test negative counts in LB_SETCOUNT.

parent 8a9ff9fb
...@@ -1893,6 +1893,11 @@ static void test_set_count( void ) ...@@ -1893,6 +1893,11 @@ static void test_set_count( void )
GetUpdateRect( listbox, &r, TRUE ); GetUpdateRect( listbox, &r, TRUE );
ok( !IsRectEmpty( &r ), "got empty rect\n"); 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 ); DestroyWindow( listbox );
for (i = 0; i < ARRAY_SIZE(styles); ++i) for (i = 0; i < ARRAY_SIZE(styles); ++i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment