diff --git a/dlls/user32/tests/listbox.c b/dlls/user32/tests/listbox.c index 5e650e0..42a4afc 100644 --- a/dlls/user32/tests/listbox.c +++ b/dlls/user32/tests/listbox.c @@ -240,9 +240,11 @@ static LRESULT WINAPI main_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARA { case WM_DRAWITEM: { - RECT rc_item, rc_client, rc_clip; + RECT rc_item, rc_client, rc_clip, rc_empty; DRAWITEMSTRUCT *dis = (DRAWITEMSTRUCT *)lparam; + ZeroMemory(&rc_empty, sizeof(RECT)); + trace("%p WM_DRAWITEM %08lx %08lx\n", hwnd, wparam, lparam); ok(wparam == dis->CtlID, "got wParam=%08lx instead of %08x\n", @@ -254,7 +256,10 @@ static LRESULT WINAPI main_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARA rc_client.left, rc_client.top, rc_client.right, rc_client.bottom); GetClipBox(dis->hDC, &rc_clip); trace("clip rect (%d,%d-%d,%d)\n", rc_clip.left, rc_clip.top, rc_clip.right, rc_clip.bottom); - ok(EqualRect(&rc_client, &rc_clip), "client rect of the listbox should be equal to the clip box\n"); + ok(EqualRect(&rc_client, &rc_clip) || + EqualRect(&rc_clip, &rc_empty), + "client rect of the listbox should be equal to the clip box," + "or the clip box should be empty\n"); trace("rcItem (%d,%d-%d,%d)\n", dis->rcItem.left, dis->rcItem.top, dis->rcItem.right, dis->rcItem.bottom); -- 1.5.4.3