Module: wine Branch: master Commit: 82bf2556dc561749df83d81ae48047141bedffb4 URL: https://source.winehq.org/git/wine.git/?a=commit;h=82bf2556dc561749df83d81ae...
Author: Jacek Caban jacek@codeweavers.com Date: Tue May 21 16:36:03 2019 +0200
mshtml: Fix window size in IOleDocumentView::SetRect implementation.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/mshtml/view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/view.c b/dlls/mshtml/view.c index f37be03..3b28cfd 100644 --- a/dlls/mshtml/view.c +++ b/dlls/mshtml/view.c @@ -502,8 +502,8 @@ static HRESULT WINAPI OleDocumentView_SetRect(IOleDocumentView *iface, LPRECT pr GetClientRect(This->hwnd, &rect); if(!EqualRect(prcView, &rect)) { InvalidateRect(This->hwnd, NULL, TRUE); - SetWindowPos(This->hwnd, NULL, prcView->left, prcView->top, prcView->right, - prcView->bottom, SWP_NOZORDER | SWP_NOACTIVATE); + SetWindowPos(This->hwnd, NULL, prcView->left, prcView->top, prcView->right - prcView->left, + prcView->bottom - prcView->top, SWP_NOZORDER | SWP_NOACTIVATE); } }