Search
lxdream.org :: lxdream :: r511:e02fb1af6fff
lxdream 0.9.1
released Jun 29
Download Now
changeset511:e02fb1af6fff
parent510:41ce7a074f4e
child512:682c407dd117
authornkeynes
dateWed Nov 14 10:23:28 2007 +0000 (12 years ago)
Fix validation of render buffer count when loading save state
src/pvr2/pvr2.c
1.1 --- a/src/pvr2/pvr2.c Wed Nov 14 10:21:33 2007 +0000
1.2 +++ b/src/pvr2/pvr2.c Wed Nov 14 10:23:28 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.c,v 1.49 2007-11-08 11:54:16 nkeynes Exp $
1.6 + * $Id: pvr2.c,v 1.50 2007-11-14 10:23:28 nkeynes Exp $
1.7 *
1.8 * PVR2 (Video) Core module implementation and MMIO registers.
1.9 *
1.10 @@ -239,7 +239,7 @@
1.11 int i, has_frontbuffer;
1.12
1.13 fread( &count, sizeof(count), 1, f );
1.14 - if( count >= MAX_RENDER_BUFFERS ) {
1.15 + if( count > MAX_RENDER_BUFFERS ) {
1.16 return FALSE;
1.17 }
1.18 fread( &has_frontbuffer, sizeof(has_frontbuffer), 1, f );
.