riched20: Use SetRectEmpty() instead of open coding it.

Michael Stefaniuc mstefani at redhat.de
Tue Mar 8 04:48:07 CST 2016


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 dlls/riched20/txtsrv.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/dlls/riched20/txtsrv.c b/dlls/riched20/txtsrv.c
index 18b26ac..3df7798 100644
--- a/dlls/riched20/txtsrv.c
+++ b/dlls/riched20/txtsrv.c
@@ -416,10 +416,7 @@ HRESULT WINAPI CreateTextServices(IUnknown  *pUnkOuter, ITextHost *pITextHost, I
    ITextImpl->ITextServices_iface.lpVtbl = &textservices_vtbl;
    ITextImpl->editor = ME_MakeEditor(pITextHost, FALSE, ES_LEFT);
    ITextImpl->editor->exStyleFlags = 0;
-   ITextImpl->editor->rcFormat.left = 0;
-   ITextImpl->editor->rcFormat.top = 0;
-   ITextImpl->editor->rcFormat.right = 0;
-   ITextImpl->editor->rcFormat.bottom = 0;
+   SetRectEmpty(&ITextImpl->editor->rcFormat);
 
    if (pUnkOuter)
       ITextImpl->outer_unk = pUnkOuter;
-- 
2.5.0



More information about the wine-patches mailing list