From bca5acb5ca2fd4d5cfa946bcc889e37eb76c2648 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Mon, 20 Jun 2016 11:58:27 +0200 Subject: [PATCH] user32: Use EqualRect() instead of memcmp() to compare RECTs. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- dlls/user32/winpos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c index 993ec9bdcb0..2fa194fa1c5 100644 --- a/dlls/user32/winpos.c +++ b/dlls/user32/winpos.c @@ -2095,7 +2095,7 @@ BOOL set_window_pos( HWND hwnd, HWND insert_after, UINT swp_flags, req->client.top = client_rect->top; req->client.right = client_rect->right; req->client.bottom = client_rect->bottom; - if (memcmp( window_rect, &visible_rect, sizeof(RECT) ) || !IsRectEmpty( &valid_rects[0] )) + if (!EqualRect( window_rect, &visible_rect ) || !IsRectEmpty( &valid_rects[0] )) { wine_server_add_data( req, &visible_rect, sizeof(visible_rect) ); if (!IsRectEmpty( &valid_rects[0] ))