mciwave: Simplify the check for an empty string (PVS-Studio).
This commit is contained in:
parent
35b24f1ab5
commit
2ab0bbafe0
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue