Commit 2ab0bbaf authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

mciwave: Simplify the check for an empty string (PVS-Studio).

parent 35b24f1a
......@@ -444,7 +444,7 @@ static DWORD create_tmp_file(HMMIO* hFile, LPWSTR* pszTmpFileName)
TRACE("%s!\n", debugstr_w(*pszTmpFileName));
if (*pszTmpFileName && (strlenW(*pszTmpFileName) > 0)) {
if (*pszTmpFileName && (*pszTmpFileName)[0]) {
*hFile = mmioOpenW(*pszTmpFileName, NULL,
MMIO_ALLOCBUF | MMIO_READWRITE | MMIO_CREATE);
......@@ -470,7 +470,7 @@ static LRESULT WAVE_mciOpenFile(WINE_MCIWAVE* wmw, LPCWSTR filename)
HeapFree(GetProcessHeap(), 0, wmw->lpFileName);
wmw->lpFileName = fn;
if (strlenW(filename) > 0) {
if (filename[0]) {
/* FIXME : what should be done if wmw->hFile is already != 0, or the driver is playin' */
TRACE("MCI_OPEN_ELEMENT %s!\n", debugstr_w(filename));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment