From: Gabriel Ivăncescu Subject: [PATCH v2 6/8] user32/tests: Test for LB_SETCOUNT without LBS_NODATA Message-Id: <71b35b62d60951483fba45a508165e270b099d12.1537459289.git.gabrielopcode@gmail.com> Date: Thu, 20 Sep 2018 19:02:48 +0300 In-Reply-To: <1db722c508148083fe099a2631ce320729c1553e.1537459289.git.gabrielopcode@gmail.com> References: <1db722c508148083fe099a2631ce320729c1553e.1537459289.git.gabrielopcode@gmail.com> Signed-off-by: Gabriel Ivăncescu --- dlls/user32/tests/listbox.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/user32/tests/listbox.c b/dlls/user32/tests/listbox.c index dfa8de7..4d9e70f 100644 --- a/dlls/user32/tests/listbox.c +++ b/dlls/user32/tests/listbox.c @@ -1711,6 +1711,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