Skip to content

Commit

Permalink
gdrom: don't crash on unsupported sector size
Browse files Browse the repository at this point in the history
Fixes MINIDUMP-284
  • Loading branch information
flyinghead committed Aug 17, 2024
1 parent af73532 commit 4d06743
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/imgread/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ struct RawTrackFile : TrackFile
*sector_type=SECFMT_2448_MODE2;
else
{
verify(false);
WARN_LOG(GDROM, "Unsupported sector size %d", fmt);
return false;
}

std::fseek(file, offset + FAD * fmt, SEEK_SET);
Expand Down

0 comments on commit 4d06743

Please sign in to comment.