From c839556a277347c2dffbbb020953096c9c6cc879 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 6 Aug 2017 19:47:10 -0400 Subject: [PATCH] Fixed: rewind the file to check for 'EXTENDED' if 'MV - CPC' failed. --- Storage/Disk/Formats/CPCDSK.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Storage/Disk/Formats/CPCDSK.cpp b/Storage/Disk/Formats/CPCDSK.cpp index 2e185dda6..c6f7f9d59 100644 --- a/Storage/Disk/Formats/CPCDSK.cpp +++ b/Storage/Disk/Formats/CPCDSK.cpp @@ -16,6 +16,7 @@ CPCDSK::CPCDSK(const char *file_name) : Storage::FileHolder(file_name), is_extended_(false) { if(!check_signature("MV - CPC", 8)) { is_extended_ = true; + fseek(file_, 0, SEEK_SET); if(!check_signature("EXTENDED", 8)) throw ErrorNotCPCDSK; }