Skip to content

Commit

Permalink
Fix P04 OSID offset value crash
Browse files Browse the repository at this point in the history
  • Loading branch information
antus committed Jul 28, 2024
1 parent df7fa98 commit 2e40689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Apps/PcmLibrary/Misc/FileValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ public uint GetOsidFromImage()
case 512 * 1024:
if (image[0x7FFFE] == 0xFF && image[0x7FFFF] == 0xFF)
{
osid = ReadUnsigned(image, 0xFFFF8); // some 1998 P04
osid = ReadUnsigned(image, 0x7FFF8); // some 1998 P04
}
else
{
osid = ReadUnsigned(image, 0xFFFFA);
osid = ReadUnsigned(image, 0x7FFFA);
}
break;
}
Expand Down

0 comments on commit 2e40689

Please sign in to comment.