mciqtz32: Fixed boolean condition for null string check (Coverity 913).
This commit is contained in:
parent
b4923a32b8
commit
088790e8e4
|
@ -172,7 +172,7 @@ static DWORD MCIQTZ_mciOpen(UINT wDevID, DWORD dwFlags,
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!lpOpenParms->lpstrElementName && !lstrlenW(lpOpenParms->lpstrElementName)) {
|
if (!lpOpenParms->lpstrElementName || !lpOpenParms->lpstrElementName[0]) {
|
||||||
TRACE("Invalid filename specified\n");
|
TRACE("Invalid filename specified\n");
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue