Commit b75cd7e2 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

riched20: Avoid extra host calls during CreateTextServices().

parent 0b94369b
...@@ -399,7 +399,7 @@ static const ITextServicesVtbl textservices_vtbl = ...@@ -399,7 +399,7 @@ static const ITextServicesVtbl textservices_vtbl =
HRESULT WINAPI CreateTextServices(IUnknown *pUnkOuter, ITextHost *pITextHost, IUnknown **ppUnk) HRESULT WINAPI CreateTextServices(IUnknown *pUnkOuter, ITextHost *pITextHost, IUnknown **ppUnk)
{ {
ITextServicesImpl *ITextImpl; ITextServicesImpl *ITextImpl;
HRESULT hres;
TRACE("%p %p --> %p\n", pUnkOuter, pITextHost, ppUnk); TRACE("%p %p --> %p\n", pUnkOuter, pITextHost, ppUnk);
if (pITextHost == NULL) if (pITextHost == NULL)
return E_POINTER; return E_POINTER;
...@@ -421,8 +421,6 @@ HRESULT WINAPI CreateTextServices(IUnknown *pUnkOuter, ITextHost *pITextHost, I ...@@ -421,8 +421,6 @@ HRESULT WINAPI CreateTextServices(IUnknown *pUnkOuter, ITextHost *pITextHost, I
ITextImpl->editor->rcFormat.right = 0; ITextImpl->editor->rcFormat.right = 0;
ITextImpl->editor->rcFormat.bottom = 0; ITextImpl->editor->rcFormat.bottom = 0;
ME_HandleMessage(ITextImpl->editor, WM_CREATE, 0, 0, TRUE, &hres);
if (pUnkOuter) if (pUnkOuter)
ITextImpl->outer_unk = pUnkOuter; ITextImpl->outer_unk = pUnkOuter;
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment