patch for midiStreamOut

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ChangeLog says it all
A+
Name:          midistrm
ChangeLog:     check for NULL ptr in midiStreamOut
License:       X11
GenDate:       2002/05/26 19:35:17 UTC
ModifiedFiles: dlls/winmm/mmsystem.c
AddedFiles:    
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/dlls/winmm/mmsystem.c,v
retrieving revision 1.54
diff -u -u -r1.54 mmsystem.c
--- dlls/winmm/mmsystem.c	22 May 2002 01:52:31 -0000	1.54
+++ dlls/winmm/mmsystem.c	26 May 2002 19:30:03 -0000
@@ -3451,10 +3481,12 @@
 
     if (!MMSYSTEM_GetMidiStream(hMidiStrm, &lpMidiStrm, NULL)) {
 	ret = MMSYSERR_INVALHANDLE;
+    } else if (!lpMidiHdr) {
+        ret = MMSYSERR_INVALPARAM;
     } else {
 	if (!PostThreadMessageA(lpMidiStrm->dwThreadID, 
-					WINE_MSM_HEADER, cbMidiHdr, 
-					(DWORD)lpMidiHdr)) {
+                                WINE_MSM_HEADER, cbMidiHdr, 
+                                (DWORD)lpMidiHdr)) {
 	    WARN("bad PostThreadMessageA\n");
 	    ret = MMSYSERR_ERROR;
 	}

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux