mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-17 11:34:18 +01:00
GSDumpReplayer: Fix crash when downloading Z24 targets
e.g. Lego Racers 2
This commit is contained in:
1 parent
d70334ee57
commit
affc45e752
1 file changed
+2
-1
@@ -329,7 +329,8 @@ void GSDumpReplayerCpuStep()
|
||||
u32 size;
|
||||
std::memcpy(&size, packet.data, sizeof(size));
|
||||
|
||||
std::unique_ptr<u8[]> arr(new u8[size * 16]);
|
||||
// Allocate an extra quadword, some transfers write too much (e.g. Lego Racers 2 with Z24 downloads).
|
||||
std::unique_ptr<u8[]> arr(new u8[(size + 1) * 16]);
|
||||
GetMTGS().InitAndReadFIFO(arr.get(), size);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user