Fixing invalid check for existing file.

Review URL: http://webrtc-codereview.appspot.com/313002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1124 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
kjellander@webrtc.org 2011-12-07 18:50:17 +00:00
parent cc7b649474
commit 80b2661dc6

View File

@ -134,7 +134,7 @@ std::string ResourcePath(std::string name, std::string extension) {
std::string resources_path = ProjectRootPath() + kResourcesDirName + kPathDelimiter;
std::string resource_file = resources_path + name + "_" + platform + "_" +
architecture + "." + extension;
if (!FileExists(resource_file)) {
if (FileExists(resource_file)) {
return resource_file;
}
// Try without architecture.