# HG changeset patch # User nkeynes # Date 1195035808 0 # Node ID e02fb1af6fff4b967eff6b5783c21bc4852eda25 # Parent 41ce7a074f4ec2fd628fec0d4d3a426e7e498394 Fix validation of render buffer count when loading save state --- a/src/pvr2/pvr2.c Wed Nov 14 10:21:33 2007 +0000 +++ b/src/pvr2/pvr2.c Wed Nov 14 10:23:28 2007 +0000 @@ -1,5 +1,5 @@ /** - * $Id: pvr2.c,v 1.49 2007-11-08 11:54:16 nkeynes Exp $ + * $Id: pvr2.c,v 1.50 2007-11-14 10:23:28 nkeynes Exp $ * * PVR2 (Video) Core module implementation and MMIO registers. * @@ -239,7 +239,7 @@ int i, has_frontbuffer; fread( &count, sizeof(count), 1, f ); - if( count >= MAX_RENDER_BUFFERS ) { + if( count > MAX_RENDER_BUFFERS ) { return FALSE; } fread( &has_frontbuffer, sizeof(has_frontbuffer), 1, f );