Commit fbb5390a authored by Alexandre Julliard's avatar Alexandre Julliard

Avoid closing the cdrom if we failed to open it.

parent 78a7c5f2
......@@ -1915,11 +1915,10 @@ NTSTATUS CDROM_DeviceIoControl(DWORD clientID, HANDLE hDevice,
status = STATUS_INVALID_PARAMETER;
break;
}
CDROM_Close(clientID);
error:
piosb->u.Status = status;
piosb->Information = sz;
if (hEvent) NtSetEvent(hEvent, NULL);
CDROM_Close(clientID);
return status;
}
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