From 6999921a6d1c18948bef6c162bc08327232148de Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 17 Oct 2009 17:29:48 +0200 Subject: [PATCH] winmm: Return error on NULL ioProc (Coverity). --- dlls/winmm/mmio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winmm/mmio.c b/dlls/winmm/mmio.c index 5205e8a6a0a..14fb4e3d83d 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) {