mirror of https://github.com/PCSX2/pcsx2.git
cdvdgigaherz: Fix read past the end of the buffer
This commit is contained in:
parent
f2edc50675
commit
5a63a62454
|
@ -341,7 +341,7 @@ s32 cdvdDirectReadSector(u32 sector, s32 mode, u8 *buffer)
|
|||
memcpy(buffer, bfr + 12, 2340);
|
||||
return 0;
|
||||
default:
|
||||
memcpy(buffer, bfr + 12, 2352);
|
||||
memcpy(buffer, bfr, 2352);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue