[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-patches
Subject: mshtml: Use SetRectEmpty() instead of memset().
From: Michael Stefaniuc <mstefani () redhat ! de>
Date: 2016-07-30 20:06:02
Message-ID: 20160730200602.GE17279 () redhat ! com
[Download RAW message or body]
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
---
dlls/mshtml/editor.c | 2 +-
dlls/mshtml/view.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/editor.c b/dlls/mshtml/editor.c
index fb77ee1..275ba0c 100644
--- a/dlls/mshtml/editor.c
+++ b/dlls/mshtml/editor.c
@@ -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);
}
diff --git a/dlls/mshtml/view.c b/dlls/mshtml/view.c
index 4470a43..2a55938 100644
--- a/dlls/mshtml/view.c
+++ b/dlls/mshtml/view.c
@@ -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;
--
2.7.4
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic