comctl32/tests: Test negative counts in LB_SETCOUNT.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gabriel Ivăncescu 2019-02-20 12:05:01 +00:00 committed by Alexandre Julliard
parent 1b7886edaf
commit 7ec954988c
1 changed files with 5 additions and 0 deletions

View File

@ -1996,6 +1996,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)