mcicda: Fix an early return statement in Open.

This commit is contained in:
Jörg Höhle 2009-10-01 19:34:05 +02:00 committed by Alexandre Julliard
parent 429bf7e0e2
commit 4c357492c3
1 changed files with 2 additions and 1 deletions

View File

@ -419,7 +419,8 @@ static DWORD MCICDA_Open(UINT wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSW lpOpenPar
if (dwFlags & MCI_OPEN_ELEMENT) {
if (dwFlags & MCI_OPEN_ELEMENT_ID) {
WARN("MCI_OPEN_ELEMENT_ID %p! Abort\n", lpOpenParms->lpstrElementName);
return MCIERR_NO_ELEMENT_ALLOWED;
ret = MCIERR_NO_ELEMENT_ALLOWED;
goto the_error;
}
TRACE("MCI_OPEN_ELEMENT element name: %s\n", debugstr_w(lpOpenParms->lpstrElementName));
if (!isalpha(lpOpenParms->lpstrElementName[0]) || lpOpenParms->lpstrElementName[1] != ':' ||