Module: wine Branch: master Commit: 458c729251b26045b9b2228f607654d6e25bcd3a URL: http://source.winehq.org/git/wine.git/?a=commit;h=458c729251b26045b9b2228f60...
Author: James Hawkins jhawkins@codeweavers.com Date: Wed May 21 22:24:43 2008 -0500
user32: Fix a test that fails in almost all reports.
---
dlls/user32/tests/listbox.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/tests/listbox.c b/dlls/user32/tests/listbox.c index 5e650e0..849372c 100644 --- a/dlls/user32/tests/listbox.c +++ b/dlls/user32/tests/listbox.c @@ -254,7 +254,9 @@ 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) || IsRectEmpty(&rc_clip), + "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);