mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 14:24:45 +00:00
wineoss: Don't dereference a potentially NULL value in the WARN statement (Coverity 93).
This commit is contained in:
parent
839b5400cd
commit
e3e9bc30fd
1 changed files with 2 additions and 2 deletions
|
@ -1620,8 +1620,8 @@ static DWORD modPrepare(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
|
|||
if (dwSize < sizeof(MIDIHDR) || lpMidiHdr == 0 ||
|
||||
lpMidiHdr->lpData == 0 || (lpMidiHdr->dwFlags & MHDR_INQUEUE) != 0 ||
|
||||
lpMidiHdr->dwBufferLength >= 0x10000ul) {
|
||||
WARN("%p %p %08x %d/%d\n", lpMidiHdr, lpMidiHdr->lpData,
|
||||
lpMidiHdr->dwFlags, sizeof(MIDIHDR), dwSize);
|
||||
WARN("%p %p %08x %d/%d\n", lpMidiHdr, lpMidiHdr ? lpMidiHdr->lpData : NULL,
|
||||
lpMidiHdr ? lpMidiHdr->dwFlags : 0, sizeof(MIDIHDR), dwSize);
|
||||
return MMSYSERR_INVALPARAM;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue