ieframe: Use InflateRect() instead of open coding it.

Michael Stefaniuc mstefani at redhat.de
Sat Jul 9 06:52:20 CDT 2016


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 dlls/ieframe/iexplore.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/ieframe/iexplore.c b/dlls/ieframe/iexplore.c
index 5b58aa2..11b79ad 100644
--- a/dlls/ieframe/iexplore.c
+++ b/dlls/ieframe/iexplore.c
@@ -73,8 +73,7 @@ static void adjust_ie_docobj_rect(HWND frame, RECT* rc)
     HWND hwndStatus = GetDlgItem(frame, IDC_BROWSE_STATUSBAR);
     INT barHeight = SendMessageW(hwndRebar, RB_GETBARHEIGHT, 0, 0);
 
-    rc->top += barHeight;
-    rc->bottom -= barHeight;
+    InflateRect(rc, 0, -barHeight);
 
     if(IsWindowVisible(hwndStatus))
     {
-- 
2.4.11



More information about the wine-patches mailing list