mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:50:21 +00:00
Avoid closing the cdrom if we failed to open it.
This commit is contained in:
parent
78a7c5f28e
commit
fbb5390a32
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue