mciseq: Simplify the check for an empty string.

This commit is contained in:
Michael Stefaniuc 2014-11-17 11:07:02 +01:00 committed by Alexandre Julliard
parent 88725cb279
commit 560a78dd40

View file

@ -683,7 +683,7 @@ static DWORD MIDI_mciOpen(WINE_MCIMIDI* wmm, DWORD dwFlags, LPMCI_OPEN_PARMSW lp
if (dwFlags & MCI_OPEN_ELEMENT) {
TRACE("MCI_OPEN_ELEMENT %s!\n", debugstr_w(lpParms->lpstrElementName));
if (lpParms->lpstrElementName && strlenW(lpParms->lpstrElementName) > 0) {
if (lpParms->lpstrElementName && lpParms->lpstrElementName[0]) {
wmm->hFile = mmioOpenW((LPWSTR)lpParms->lpstrElementName, NULL,
MMIO_ALLOCBUF | MMIO_READ | MMIO_DENYWRITE);
if (wmm->hFile == 0) {