wineoss.drv: Avoid a potential NULL pointer dereference in a TRACE.

This commit is contained in:
Michael Stefaniuc 2010-05-20 01:15:56 +02:00 committed by Alexandre Julliard
parent 49c5494ff8
commit 4deab508ba
1 changed files with 1 additions and 1 deletions

View File

@ -1967,7 +1967,7 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
audio_buf_info info; audio_buf_info info;
DWORD ret; DWORD ret;
TRACE("(%u, %p[cb=%08lx], %08X);\n", wDevID, lpDesc, lpDesc->dwCallback, dwFlags); TRACE("(%u, %p, %08X);\n", wDevID, lpDesc, dwFlags);
if (lpDesc == NULL) { if (lpDesc == NULL) {
WARN("Invalid Parameter !\n"); WARN("Invalid Parameter !\n");
return MMSYSERR_INVALPARAM; return MMSYSERR_INVALPARAM;