[Scummvm-cvs-logs] SF.net SVN: scummvm:[53601] scummvm/trunk/backends/platform/psp/ image_viewer.cpp

Bluddy at users.sourceforge.net Bluddy at users.sourceforge.net
Tue Oct 19 09:37:50 CEST 2010


Revision: 53601
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53601&view=rev
Author:   Bluddy
Date:     2010-10-19 07:37:50 +0000 (Tue, 19 Oct 2010)

Log Message:
-----------
PSP: add missing return statements to image viewer

Modified Paths:
--------------
    scummvm/trunk/backends/platform/psp/image_viewer.cpp

Modified: scummvm/trunk/backends/platform/psp/image_viewer.cpp
===================================================================
--- scummvm/trunk/backends/platform/psp/image_viewer.cpp	2010-10-19 04:59:45 UTC (rev 53600)
+++ scummvm/trunk/backends/platform/psp/image_viewer.cpp	2010-10-19 07:37:50 UTC (rev 53601)
@@ -75,16 +75,19 @@
 		sprintf(error, "Cannot display %s. Not a proper PNG file", specificImageName.c_str());
 		GUI::TimedMessageDialog dialog(error, 4000);
 		dialog.runModal();
+		return false;
 	} else if (status == PngLoader::OUT_OF_MEMORY) {
 		sprintf(error, "Out of memory loading %s. Try making the image smaller", specificImageName.c_str());
 		GUI::TimedMessageDialog dialog(error, 4000);
 		dialog.runModal();
+		return false;
 	}
 	// try to load the image file
 	if (!image.load()) {
 		sprintf(error, "Cannot display %s. Not a proper PNG file", specificImageName.c_str());
 		GUI::TimedMessageDialog dialog(error, 4000);
 		dialog.runModal();	
+		return false;
 	}
 	
 	setConstantRendererOptions();


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