[Scummvm-cvs-logs] SF.net SVN: scummvm: [31445] scummvm/trunk/common/file.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Mon Apr 7 22:38:52 CEST 2008
Revision: 31445
http://scummvm.svn.sourceforge.net/scummvm/?rev=31445&view=rev
Author: sev
Date: 2008-04-07 13:38:52 -0700 (Mon, 07 Apr 2008)
Log Message:
-----------
Fix a recent regression reported in bug #1937042: "FEEBLE: Capitalization
variations when searching for files"
Modified Paths:
--------------
scummvm/trunk/common/file.cpp
Modified: scummvm/trunk/common/file.cpp
===================================================================
--- scummvm/trunk/common/file.cpp 2008-04-07 20:24:40 UTC (rev 31444)
+++ scummvm/trunk/common/file.cpp 2008-04-07 20:38:52 UTC (rev 31445)
@@ -172,7 +172,7 @@
//
if (!file) {
fileBuf.toUppercase();
- pathBuf += fileBuf;
+ pathBuf = dirBuf + fileBuf;
file = fopen(pathBuf.c_str(), mode);
}
@@ -181,7 +181,7 @@
//
if (!file) {
fileBuf.toLowercase();
- pathBuf += fileBuf;
+ pathBuf = dirBuf + fileBuf;
file = fopen(pathBuf.c_str(), mode);
}
@@ -191,7 +191,7 @@
if (!file) {
fileBuf.toLowercase();
fileBuf.setChar(toupper(fileBuf[0]),0);
- pathBuf += fileBuf;
+ pathBuf = dirBuf + fileBuf;
file = fopen(pathBuf.c_str(), mode);
}
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