Michael Stefaniuc : hhctrl: Use SetRect() instead of open coding it.

Alexandre Julliard julliard at winehq.org
Thu Jul 14 08:58:04 CDT 2016


Module: wine
Branch: master
Commit: d5b0e98ebf642891fe3919400e7cf09b5320e710
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d5b0e98ebf642891fe3919400e7cf09b5320e710

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Jul 11 09:58:38 2016 +0200

hhctrl: Use SetRect() instead of open coding it.

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/hhctrl.ocx/help.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/dlls/hhctrl.ocx/help.c b/dlls/hhctrl.ocx/help.c
index 68989ae..5fd7634 100644
--- a/dlls/hhctrl.ocx/help.c
+++ b/dlls/hhctrl.ocx/help.c
@@ -412,10 +412,7 @@ static void SB_GetSizeBarRect(HHInfo *info, RECT *rc)
     GetClientRect(info->WinType.hwndToolBar, &rectTB);
     GetClientRect(info->WinType.hwndNavigation, &rectNP);
 
-    rc->left = rectNP.right;
-    rc->top = rectTB.bottom;
-    rc->bottom = rectWND.bottom - rectTB.bottom;
-    rc->right = SIZEBAR_WIDTH;
+    SetRect(rc, rectNP.right, rectTB.bottom, SIZEBAR_WIDTH, rectWND.bottom - rectTB.bottom);
 }
 
 static BOOL HH_AddSizeBar(HHInfo *pHHInfo)




More information about the wine-cvs mailing list