user32: Use EqualRect() instead of memcmp() to compare RECTs.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-06-20 11:58:27 +02:00 committed by Alexandre Julliard
parent 7fee54f409
commit bca5acb5ca
1 changed files with 1 additions and 1 deletions

View File

@ -2095,7 +2095,7 @@ BOOL set_window_pos( HWND hwnd, HWND insert_after, UINT swp_flags,
req->client.top = client_rect->top; req->client.top = client_rect->top;
req->client.right = client_rect->right; req->client.right = client_rect->right;
req->client.bottom = client_rect->bottom; 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) ); wine_server_add_data( req, &visible_rect, sizeof(visible_rect) );
if (!IsRectEmpty( &valid_rects[0] )) if (!IsRectEmpty( &valid_rects[0] ))