richedit: Avoid crashing if TxSendMessage is called with NULL plresult.

This commit is contained in:
Dylan Smith 2009-02-26 03:43:14 -05:00 committed by Alexandre Julliard
parent 22bfd1396c
commit b441bb2e4c
1 changed files with 3 additions and 1 deletions

View File

@ -156,8 +156,10 @@ HRESULT WINAPI fnTextSrv_TxSendMessage(ITextServices *iface,
{
ICOM_THIS_MULTI(ITextServicesImpl, lpVtbl, iface);
HRESULT hresult;
LRESULT lresult;
*plresult = ME_HandleMessage(This->editor, msg, wparam, lparam, TRUE, &hresult);
lresult = ME_HandleMessage(This->editor, msg, wparam, lparam, TRUE, &hresult);
if (plresult) *plresult = lresult;
return hresult;
}