Module: wine Branch: master Commit: b441bb2e4c094eaf476ec274161eefaff2e84f26 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b441bb2e4c094eaf476ec27416...
Author: Dylan Smith dylan.ah.smith@gmail.com Date: Thu Feb 26 03:43:14 2009 -0500
richedit: Avoid crashing if TxSendMessage is called with NULL plresult.
---
dlls/riched20/txtsrv.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/txtsrv.c b/dlls/riched20/txtsrv.c index d7b915c..a6d8170 100644 --- a/dlls/riched20/txtsrv.c +++ b/dlls/riched20/txtsrv.c @@ -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; }