Check for NULL ptr in midiStreamOut.
This commit is contained in:
parent
f87d30edc1
commit
c22256a01c
|
@ -3469,6 +3469,8 @@ MMRESULT WINAPI midiStreamOut(HMIDISTRM hMidiStrm, LPMIDIHDR lpMidiHdr,
|
|||
|
||||
if (!MMSYSTEM_GetMidiStream(hMidiStrm, &lpMidiStrm, NULL)) {
|
||||
ret = MMSYSERR_INVALHANDLE;
|
||||
} else if (!lpMidiHdr) {
|
||||
ret = MMSYSERR_INVALPARAM;
|
||||
} else {
|
||||
if (!PostThreadMessageA(lpMidiStrm->dwThreadID,
|
||||
WINE_MSM_HEADER, cbMidiHdr,
|
||||
|
|
Loading…
Reference in New Issue