richedit: Avoid crashing if TxSendMessage is called with NULL plresult.
This commit is contained in:
parent
22bfd1396c
commit
b441bb2e4c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue