mciqtz32: Fixed boolean condition for null string check (Coverity 913).

This commit is contained in:
Marcus Meissner 2009-04-04 17:43:57 +02:00 committed by Alexandre Julliard
parent b4923a32b8
commit 088790e8e4
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ static DWORD MCIQTZ_mciOpen(UINT wDevID, DWORD dwFlags,
goto err;
}
if (!lpOpenParms->lpstrElementName && !lstrlenW(lpOpenParms->lpstrElementName)) {
if (!lpOpenParms->lpstrElementName || !lpOpenParms->lpstrElementName[0]) {
TRACE("Invalid filename specified\n");
goto err;
}