Marcus Meissner : winmm: Return error on NULL ioProc (Coverity).

Alexandre Julliard julliard at winehq.org
Mon Oct 19 09:56:08 CDT 2009


Module: wine
Branch: master
Commit: 6999921a6d1c18948bef6c162bc08327232148de
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6999921a6d1c18948bef6c162bc08327232148de

Author: Marcus Meissner <marcus at 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) {




More information about the wine-cvs mailing list