From 5adfd86a5b1c22c2ee31068612aaaeef3a52cab6 Mon Sep 17 00:00:00 2001 From: CaH4e3 Date: Mon, 6 Aug 2012 05:21:40 +0000 Subject: [PATCH] fixed #525 A bug when loading UNF games --- src/unif.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unif.cpp b/src/unif.cpp index 0e6267d0..5308c5c9 100644 --- a/src/unif.cpp +++ b/src/unif.cpp @@ -484,7 +484,7 @@ int LoadUNIFChunks(FCEUFILE *fp) x++; } if(!t) - if(FCEU_fseek(fp,uchead.info,SEEK_CUR)) + if(FCEU_fseek(fp,uchead.info,SEEK_CUR)<0) return(0); } }