mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-10 02:29:33 +00:00
Fix assertion when creating a removable media drive without filename
This commit is contained in:
parent
07a4826167
commit
5afc6c3885
|
@ -263,7 +263,7 @@ bool PiscsiExecutor::Attach(const CommandContext& context, const PbDeviceDefinit
|
||||||
return context.ReturnLocalizedError(LocalizationKey::ERROR_SCSI_CONTROLLER);
|
return context.ReturnLocalizedError(LocalizationKey::ERROR_SCSI_CONTROLLER);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (storage_device != nullptr) {
|
if (storage_device != nullptr && !storage_device->IsRemoved()) {
|
||||||
storage_device->ReserveFile();
|
storage_device->ReserveFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user