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

Alexandre Julliard julliard at wine.codeweavers.com
Tue Mar 8 08:03:02 CST 2016


Module: wine
Branch: master
Commit: a58822dba400c335ba86b9687766dec4358e74e7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a58822dba400c335ba86b9687766dec4358e74e7

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Mar  8 11:48:07 2016 +0100

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

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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;




More information about the wine-cvs mailing list