[Scummvm-cvs-logs] SF.net SVN: scummvm:[33350] scummvm/trunk/backends/fs/windows/windows-fs. cpp

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Mon Jul 28 04:56:18 CEST 2008


Revision: 33350
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33350&view=rev
Author:   peres001
Date:     2008-07-28 02:56:17 +0000 (Mon, 28 Jul 2008)

Log Message:
-----------
Fixed constructor for WindowsFilesystemNode. On Windows, trailing slashes can be added only to directory names.

Modified Paths:
--------------
    scummvm/trunk/backends/fs/windows/windows-fs.cpp

Modified: scummvm/trunk/backends/fs/windows/windows-fs.cpp
===================================================================
--- scummvm/trunk/backends/fs/windows/windows-fs.cpp	2008-07-27 22:50:36 UTC (rev 33349)
+++ scummvm/trunk/backends/fs/windows/windows-fs.cpp	2008-07-28 02:56:17 UTC (rev 33350)
@@ -245,7 +245,7 @@
 		_isDirectory = ((fileAttribs & FILE_ATTRIBUTE_DIRECTORY) != 0);
 		_isValid = true;
 		// Add a trailing slash, if necessary.
-		if (_path.lastChar() != '\\') {
+		if (_isDirectory && _path.lastChar() != '\\') {
 			_path += '\\';
 		}
 	}


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