winmm: Return error on NULL ioProc (Coverity).
authorMarcus Meissner <marcus@jet.franken.de>
Sat, 17 Oct 2009 15:29:48 +0000 (17:29 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 19 Oct 2009 09:41:52 +0000 (11:41 +0200)
dlls/winmm/mmio.c

index 5205e8a6a0a4fccc56100be5379d85ce39746087..14fb4e3d83d41c37a65ee595b3df325e6ce4b776 100644 (file)
@@ -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) {