Module: wine Branch: master Commit: 6999921a6d1c18948bef6c162bc08327232148de URL: http://source.winehq.org/git/wine.git/?a=commit;h=6999921a6d1c18948bef6c162b...
Author: Marcus Meissner marcus@jet.franken.de Date: Sat Oct 17 17:29:48 2009 +0200
winmm: Return error on NULL ioProc (Coverity).
---
dlls/winmm/mmio.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winmm/mmio.c b/dlls/winmm/mmio.c index 5205e8a..14fb4e3 100644 --- a/dlls/winmm/mmio.c +++ b/dlls/winmm/mmio.c @@ -345,8 +345,8 @@ static LRESULT send_message(struct IOProcList* ioProc, LPMMIOINFO mmioinfo, LPARAM lp1 = lParam1, lp2 = lParam2;
if (!ioProc) { - ERR("brrr\n"); - result = MMSYSERR_INVALPARAM; + ERR("ioProc NULL\n"); + return MMSYSERR_INVALPARAM; }
if (ioProc->is_unicode != is_unicode) {