From 085a538dedbf5369c7885f0547ba9e419fa2a1ec Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Mon, 20 Jun 2016 12:02:37 +0200 Subject: [PATCH] comct32: Use EqualRect() instead of memcmp() to compare RECTs. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- dlls/comctl32/rebar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c index de8155aa43b..3089378cc91 100644 --- a/dlls/comctl32/rebar.c +++ b/dlls/comctl32/rebar.c @@ -1573,7 +1573,7 @@ REBAR_AutoSize(REBAR_INFO *infoPtr, BOOL needsLayout) GetClientRect(infoPtr->hwndSelf, &rcNew); GetClientRect(infoPtr->hwndSelf, &autosize.rcTarget); - autosize.fChanged = (memcmp(&rc, &rcNew, sizeof(RECT)) == 0); + autosize.fChanged = EqualRect(&rc, &rcNew); autosize.rcTarget = rc; autosize.rcActual = rcNew; REBAR_Notify((NMHDR *)&autosize, infoPtr, RBN_AUTOSIZE);