mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
mciwave: Return on error (Coverity).
This commit is contained in:
parent
6999921a6d
commit
1ae601772c
@ -1579,9 +1579,10 @@ static DWORD WAVE_mciInfo(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_INFO_PARMSW l
|
||||
|
||||
TRACE("(%u, %08X, %p);\n", wDevID, dwFlags, lpParms);
|
||||
|
||||
if (lpParms == NULL || lpParms->lpstrReturn == NULL) {
|
||||
ret = MCIERR_NULL_PARAMETER_BLOCK;
|
||||
} else if (wmw == NULL) {
|
||||
if (!lpParms || !lpParms->lpstrReturn)
|
||||
return MCIERR_NULL_PARAMETER_BLOCK;
|
||||
|
||||
if (wmw == NULL) {
|
||||
ret = MCIERR_INVALID_DEVICE_ID;
|
||||
} else {
|
||||
static const WCHAR wszAudio [] = {'W','i','n','e','\'','s',' ','a','u','d','i','o',' ','p','l','a','y','e','r',0};
|
||||
|
Loading…
Reference in New Issue
Block a user