소스 검색

Missed image index assignment; order restart at 0 for no images.

saybur 2 년 전
부모
커밋
3f8627a978
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/BlueSCSI_disk.cpp

+ 2 - 2
src/BlueSCSI_disk.cpp

@@ -565,13 +565,13 @@ int scsiDiskGetNextImageName(image_config_t &img, char *buf, size_t buflen)
     {
         // there may be more than one image but we've ran out of new ones
         // wrap back to the first image
-        img.image_index = 9;
+        img.image_index = IMAGE_INDEX_MAX;
         return scsiDiskGetNextImageName(img, buf, buflen);
     }
     else
     {
         // images are not defined in config
-        img.image_index = 0;
+        img.image_index = IMAGE_INDEX_MAX;
         return 0;
     }
 }