mirror of
https://github.com/akuker/RASCSI.git
synced 2025-02-02 03:31:58 +00:00
Fix assertion when creating a removable media drive without filename (#1308)
This commit is contained in:
parent
eb8afa8319
commit
39dd1d38a2
@ -263,7 +263,7 @@ bool PiscsiExecutor::Attach(const CommandContext& context, const PbDeviceDefinit
|
||||
return context.ReturnLocalizedError(LocalizationKey::ERROR_SCSI_CONTROLLER);
|
||||
}
|
||||
|
||||
if (storage_device != nullptr) {
|
||||
if (storage_device != nullptr && !storage_device->IsRemoved()) {
|
||||
storage_device->ReserveFile();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user