[Scummvm-cvs-logs] SF.net SVN: scummvm:[39398] scummvm/trunk/backends/fs/posix/ posix-fs-factory.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sat Mar 14 18:07:07 CET 2009


Revision: 39398
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39398&view=rev
Author:   fingolfin
Date:     2009-03-14 17:07:07 +0000 (Sat, 14 Mar 2009)

Log Message:
-----------
Applied part of patch #2684986

Modified Paths:
--------------
    scummvm/trunk/backends/fs/posix/posix-fs-factory.cpp

Modified: scummvm/trunk/backends/fs/posix/posix-fs-factory.cpp
===================================================================
--- scummvm/trunk/backends/fs/posix/posix-fs-factory.cpp	2009-03-14 17:02:28 UTC (rev 39397)
+++ scummvm/trunk/backends/fs/posix/posix-fs-factory.cpp	2009-03-14 17:07:07 UTC (rev 39398)
@@ -32,8 +32,7 @@
 
 AbstractFSNode *POSIXFilesystemFactory::makeCurrentDirectoryFileNode() const {
 	char buf[MAXPATHLEN];
-	getcwd(buf, MAXPATHLEN);
-	return new POSIXFilesystemNode(buf);
+	return getcwd(buf, MAXPATHLEN) ? new POSIXFilesystemNode(buf) : NULL;
 }
 
 AbstractFSNode *POSIXFilesystemFactory::makeFileNodePath(const Common::String &path) const {


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