mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
mshtml: Use SetRectEmpty() instead of memset().
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3b61af6306
commit
85916a10ad
2 changed files with 2 additions and 2 deletions
|
@ -1328,7 +1328,7 @@ HRESULT setup_edit_mode(HTMLDocumentObj *doc)
|
|||
if(doc->ip_window)
|
||||
call_set_active_object(doc->ip_window, &doc->basedoc.IOleInPlaceActiveObject_iface);
|
||||
|
||||
memset(&rcBorderWidths, 0, sizeof(rcBorderWidths));
|
||||
SetRectEmpty(&rcBorderWidths);
|
||||
if(doc->frame)
|
||||
IOleInPlaceFrame_SetBorderSpace(doc->frame, &rcBorderWidths);
|
||||
}
|
||||
|
|
|
@ -650,7 +650,7 @@ static HRESULT WINAPI OleDocumentView_UIActivate(IOleDocumentView *iface, BOOL f
|
|||
if(This->doc_obj->ip_window)
|
||||
call_set_active_object(This->doc_obj->ip_window, &This->IOleInPlaceActiveObject_iface);
|
||||
|
||||
memset(&rcBorderWidths, 0, sizeof(rcBorderWidths));
|
||||
SetRectEmpty(&rcBorderWidths);
|
||||
IOleInPlaceFrame_SetBorderSpace(This->doc_obj->frame, &rcBorderWidths);
|
||||
|
||||
This->doc_obj->ui_active = TRUE;
|
||||
|
|
Loading…
Reference in a new issue