Dmitry Timoshkov : user32: Fix the work area test to pass on Windows when the taskbar is on top.

Alexandre Julliard julliard at winehq.org
Thu Sep 11 08:00:20 CDT 2008


Module: wine
Branch: master
Commit: 077cd6a9f5ecded0681098d6d89026a98983fe23
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=077cd6a9f5ecded0681098d6d89026a98983fe23

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Thu Sep 11 13:38:21 2008 +0900

user32: Fix the work area test to pass on Windows when the taskbar is on top.

---

 dlls/user32/tests/monitor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/tests/monitor.c b/dlls/user32/tests/monitor.c
index 65d922e..a66868f 100644
--- a/dlls/user32/tests/monitor.c
+++ b/dlls/user32/tests/monitor.c
@@ -360,7 +360,7 @@ static void test_work_area(void)
           wp.ptMaxPosition.x, wp.ptMaxPosition.y,
           wp.rcNormalPosition.left, wp.rcNormalPosition.top,
           wp.rcNormalPosition.right, wp.rcNormalPosition.bottom);
-    OffsetRect(&rc_normal, -rc_work.left, -rc_work.top);
+    OffsetRect(&wp.rcNormalPosition, rc_work.left, rc_work.top);
     if (!EqualRect(&mi.rcMonitor, &mi.rcWork)) /* FIXME: remove once Wine is fixed */
         todo_wine ok(EqualRect(&rc_normal, &wp.rcNormalPosition), "normal pos is different\n");
     else




More information about the wine-cvs mailing list