fix: allow blank media in Preferences>Error correction>RS02>query medium

This commit is contained in:
Stéphane Lesimple
2021-01-13 19:21:51 +01:00
parent 802e095cfb
commit 4518992908

View File

@@ -2038,7 +2038,8 @@ gint64 CurrentMediumSize(int get_blank_size)
gint64 size;
image = OpenImageFromDevice(Closure->device, 0);
/* 2 means: allow blank media, see comment in OpenImageFromDevice */
image = OpenImageFromDevice(Closure->device, 2);
if(!image) return 0;
if(InquireDevice(image->dh, 1) != 0x05)
{ CloseImage(image);