mcicda: Fix an early return statement in Open.
This commit is contained in:
parent
429bf7e0e2
commit
4c357492c3
|
@ -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) {
|
||||||
if (dwFlags & MCI_OPEN_ELEMENT_ID) {
|
if (dwFlags & MCI_OPEN_ELEMENT_ID) {
|
||||||
WARN("MCI_OPEN_ELEMENT_ID %p! Abort\n", lpOpenParms->lpstrElementName);
|
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));
|
TRACE("MCI_OPEN_ELEMENT element name: %s\n", debugstr_w(lpOpenParms->lpstrElementName));
|
||||||
if (!isalpha(lpOpenParms->lpstrElementName[0]) || lpOpenParms->lpstrElementName[1] != ':' ||
|
if (!isalpha(lpOpenParms->lpstrElementName[0]) || lpOpenParms->lpstrElementName[1] != ':' ||
|
||||||
|
|
Loading…
Reference in New Issue