riched20: Avoid extra host calls during CreateTextServices().

oldstable
Nikolay Sivov 2015-05-30 10:01:45 +03:00 committed by Alexandre Julliard
parent 0b94369bb7
commit b75cd7e2f0
1 changed files with 1 additions and 3 deletions

View File

@ -399,7 +399,7 @@ static const ITextServicesVtbl textservices_vtbl =
HRESULT WINAPI CreateTextServices(IUnknown *pUnkOuter, ITextHost *pITextHost, IUnknown **ppUnk)
{
ITextServicesImpl *ITextImpl;
HRESULT hres;
TRACE("%p %p --> %p\n", pUnkOuter, pITextHost, ppUnk);
if (pITextHost == NULL)
return E_POINTER;
@ -421,8 +421,6 @@ HRESULT WINAPI CreateTextServices(IUnknown *pUnkOuter, ITextHost *pITextHost, I
ITextImpl->editor->rcFormat.right = 0;
ITextImpl->editor->rcFormat.bottom = 0;
ME_HandleMessage(ITextImpl->editor, WM_CREATE, 0, 0, TRUE, &hres);
if (pUnkOuter)
ITextImpl->outer_unk = pUnkOuter;
else