hhctrl: Use SetRect() instead of open coding it.
Michael Stefaniuc
mstefani at redhat.de
Mon Jul 11 02:58:38 CDT 2016
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
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)
--
2.4.11
More information about the wine-patches
mailing list