[Scummvm-cvs-logs] CVS: scummvm/simon simonres.cpp,1.3,1.4

James Brown ender at users.sourceforge.net
Sun Aug 4 09:22:03 CEST 2002


Update of /cvsroot/scummvm/scummvm/simon
In directory usw-pr-cvs1:/tmp/cvs-serv18250

Modified Files:
	simonres.cpp 
Log Message:
Patch #589718: Simon2Win startup (by eriktorbjorn)



Index: simonres.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simonres.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- simonres.cpp	7 Jul 2002 19:08:28 -0000	1.3
+++ simonres.cpp	4 Aug 2002 16:21:28 -0000	1.4
@@ -98,11 +98,14 @@
 	char buf[256], dotbuf[256], *e;
 	const char *s = _game_path;
 
+	if (filename == NULL || *filename == '\0')
+		return NULL;
+
 	strcpy(buf, s);
 	strcat(buf, filename);
 	strcpy(dotbuf, buf);
 	strcat(dotbuf, ".");					// '.' appended version
-	// for dumb vfat drivers 
+								// for dumb vfat drivers 
 
 	/* original filename */
 	in = fopen(buf, "rb");





More information about the Scummvm-git-logs mailing list