Mounter: fix CheckPVD string comparison

This commit is contained in:
Matt Harlum 2025-03-10 22:50:36 +00:00
parent 82d9e9931f
commit f924dc8ccc

View File

@ -140,7 +140,7 @@ bool CheckPVD(struct IOStdReq *ior) {
// Check ISO ID String & for PVD Version & Type code
if ((strncmp(iso_id,id_string,5) == 0) && buf[0] == 1 && buf[6] == 1) {
if (strncmp(sys_id_1,system_id,strlen(sys_id_1)) == 0 || strncmp(sys_id_2,system_id,strlen(sys_id_2) == 0)) {
if (strncmp(sys_id_1,system_id,strlen(sys_id_1)) == 0 || strncmp(sys_id_2,system_id,strlen(sys_id_2)) == 0) {
ret = true; // CDTV or AMIGA BOOT
} else {
ret = false;