From d8e80ff5fd96364f72f79af122f75ff95e065ec4 Mon Sep 17 00:00:00 2001 From: refraction Date: Fri, 19 Nov 2010 21:33:21 +0000 Subject: [PATCH] Fixed bug in Vif Unpack Recompiler causing Guitar Hero 3 to crash on the memorycard screen. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4040 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/x86/newVif_Dynarec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/x86/newVif_Dynarec.cpp b/pcsx2/x86/newVif_Dynarec.cpp index d5656b2292..ecf814dfb1 100644 --- a/pcsx2/x86/newVif_Dynarec.cpp +++ b/pcsx2/x86/newVif_Dynarec.cpp @@ -204,7 +204,7 @@ _vifT static __fi u8* dVifsetVUptr(uint cl, uint wl, bool isFill) { u8* startmem = VU.Mem + (vif.tag.addr & (vuMemLimit-0x10)); u8* endmem = VU.Mem + vuMemLimit; - uint length = _vBlock.num * 16; + uint length = (_vBlock.num > 0) ? (_vBlock.num * 16) : 4096; // 0 = 256 if (!isFill) { // Accounting for skipping mode: Subtract the last skip cycle, since the skipped part of the run