From 4fbbb7502081a9f278ca812eacb90ccfc8d9054f Mon Sep 17 00:00:00 2001 From: cottonvibes Date: Sat, 16 Jan 2010 03:32:03 +0000 Subject: [PATCH] newVif: >= to > git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2432 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/x86/VifUnpackSSE_Dynarec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/x86/VifUnpackSSE_Dynarec.cpp b/pcsx2/x86/VifUnpackSSE_Dynarec.cpp index fc321b6f41..eef5997bad 100644 --- a/pcsx2/x86/VifUnpackSSE_Dynarec.cpp +++ b/pcsx2/x86/VifUnpackSSE_Dynarec.cpp @@ -235,8 +235,8 @@ static _f u8* dVifsetVUptr(const nVifStruct& v, int cl, int wl, bool isFill) { int skips = (blocks * skipSize + _vBlock.num) * 16; endPtr = ptr + skips; } - else endPtr = ptr + (_vBlock.num * 16); - if ( endPtr >= v.vuMemEnd ) { + else endPtr = ptr + (_vBlock.num * 16); + if ( endPtr > v.vuMemEnd ) { DevCon.WriteLn("nVif - VU Mem Ptr Overflow; falling back to interpreter."); ptr = NULL; // Fall Back to Interpreters which have wrap-around logic }