[Scummvm-cvs-logs] SF.net SVN: scummvm:[40170] scummvm/trunk/engines/gob

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Tue Apr 28 10:31:34 CEST 2009


Revision: 40170
          http://scummvm.svn.sourceforge.net/scummvm/?rev=40170&view=rev
Author:   drmccoy
Date:     2009-04-28 08:31:34 +0000 (Tue, 28 Apr 2009)

Log Message:
-----------
Added a small safeguard to play()

Modified Paths:
--------------
    scummvm/trunk/engines/gob/batplayer.cpp
    scummvm/trunk/engines/gob/scnplayer.cpp

Modified: scummvm/trunk/engines/gob/batplayer.cpp
===================================================================
--- scummvm/trunk/engines/gob/batplayer.cpp	2009-04-28 08:29:58 UTC (rev 40169)
+++ scummvm/trunk/engines/gob/batplayer.cpp	2009-04-28 08:31:34 UTC (rev 40170)
@@ -43,6 +43,9 @@
 }
 
 bool BATPlayer::play(const char *fileName) {
+	if (!fileName)
+		return false;
+
 	debugC(1, kDebugDemo, "Playing BAT \"%s\"", fileName);
 
 	init();

Modified: scummvm/trunk/engines/gob/scnplayer.cpp
===================================================================
--- scummvm/trunk/engines/gob/scnplayer.cpp	2009-04-28 08:29:58 UTC (rev 40169)
+++ scummvm/trunk/engines/gob/scnplayer.cpp	2009-04-28 08:31:34 UTC (rev 40170)
@@ -43,6 +43,9 @@
 }
 
 bool SCNPlayer::play(const char *fileName) {
+	if (!fileName)
+		return false;
+
 	debugC(1, kDebugDemo, "Playing SCN \"%s\"", fileName);
 
 	init();


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list