mshtml/tests: Use EqualRect() to compare RECTs.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-10-20 10:19:08 +02:00 committed by Alexandre Julliard
parent e85f0e0c3b
commit d930b57ded
1 changed files with 2 additions and 2 deletions

View File

@ -1149,8 +1149,8 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, LPMSG lpms
ok(ip_frame != NULL, "ip_frame == NULL\n"); ok(ip_frame != NULL, "ip_frame == NULL\n");
ok(ip_uiwindow != NULL, "ip_uiwindow == NULL\n"); ok(ip_uiwindow != NULL, "ip_uiwindow == NULL\n");
ok((IOleInPlaceUIWindow*)ip_frame != ip_uiwindow, "ip_frame == ip_uiwindow\n"); ok((IOleInPlaceUIWindow*)ip_frame != ip_uiwindow, "ip_frame == ip_uiwindow\n");
ok(!memcmp(&pos_rect, lprcPosRect, sizeof(RECT)), "pos_rect != lpecPosRect\n"); ok(EqualRect(&pos_rect, lprcPosRect), "pos_rect != lpecPosRect\n");
ok(!memcmp(&clip_rect, lprcPosRect, sizeof(RECT)), "clip_rect != lpecPosRect\n"); ok(EqualRect(&clip_rect, lprcPosRect), "clip_rect != lpecPosRect\n");
ok(frame_info.cb == sizeof(frame_info), "frame_info.cb = %d\n", frame_info.cb); ok(frame_info.cb == sizeof(frame_info), "frame_info.cb = %d\n", frame_info.cb);
ok(!frame_info.fMDIApp, "frame_info.fMDIApp = %x\n", frame_info.fMDIApp); ok(!frame_info.fMDIApp, "frame_info.fMDIApp = %x\n", frame_info.fMDIApp);
ok(frame_info.hwndFrame != NULL, "frame_info.hwnd == NULL\n"); ok(frame_info.hwndFrame != NULL, "frame_info.hwnd == NULL\n");