Amine Khaldi : riched20: Fix a c89 conformance issue in ITextImpl->editor-> rcFormat initialization.

Alexandre Julliard julliard at winehq.org
Wed Feb 16 11:14:10 CST 2011


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

Author: Amine Khaldi <amine.khaldi at reactos.org>
Date:   Tue Feb 15 18:44:03 2011 +0100

riched20: Fix a c89 conformance issue in ITextImpl->editor->rcFormat initialization.

---

 dlls/riched20/txtsrv.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/riched20/txtsrv.c b/dlls/riched20/txtsrv.c
index b4625ad..674bf38 100644
--- a/dlls/riched20/txtsrv.c
+++ b/dlls/riched20/txtsrv.c
@@ -88,7 +88,11 @@ HRESULT WINAPI CreateTextServices(IUnknown  * pUnkOuter,
    ITextImpl->lpVtbl = &textservices_Vtbl;
    ITextImpl->editor = ME_MakeEditor(pITextHost, FALSE);
    ITextImpl->editor->exStyleFlags = 0;
-   ITextImpl->editor->rcFormat = (RECT){0,0,0,0};
+   ITextImpl->editor->rcFormat.left = 0;
+   ITextImpl->editor->rcFormat.top = 0;
+   ITextImpl->editor->rcFormat.right = 0;
+   ITextImpl->editor->rcFormat.bottom = 0;
+
    ME_HandleMessage(ITextImpl->editor, WM_CREATE, 0, 0, TRUE, &hres);
 
    if (pUnkOuter)




More information about the wine-cvs mailing list