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