Dylan Smith : richedit: Initialize fields for windowless richedit controls.

Alexandre Julliard julliard at winehq.org
Mon Jan 25 11:21:09 CST 2010


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

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Mon Jan 25 01:27:30 2010 -0500

richedit: Initialize fields for windowless richedit controls.

Caught by valgrind.

---

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

diff --git a/dlls/riched20/txtsrv.c b/dlls/riched20/txtsrv.c
index 4006acd..7ab2af4 100644
--- a/dlls/riched20/txtsrv.c
+++ b/dlls/riched20/txtsrv.c
@@ -87,6 +87,8 @@ HRESULT WINAPI CreateTextServices(IUnknown  * pUnkOuter,
    ITextImpl->pMyHost = pITextHost;
    ITextImpl->lpVtbl = &textservices_Vtbl;
    ITextImpl->editor = ME_MakeEditor(pITextHost, FALSE);
+   ITextImpl->editor->exStyleFlags = 0;
+   ITextImpl->editor->rcFormat = (RECT){0,0,0,0};
    ME_HandleMessage(ITextImpl->editor, WM_CREATE, 0, 0, TRUE, &hres);
 
    if (pUnkOuter)




More information about the wine-cvs mailing list