comct32: 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:
parent
bca5acb5ca
commit
085a538ded
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue