1
0
Fork 0

fgValidatePath: fix \ vs / Windows bug

This commit is contained in:
Rebecca N. Palmer 2015-07-14 08:00:22 +01:00
parent 5b2ae615e5
commit 6957a17434

View file

@ -216,6 +216,9 @@ std::string fgValidatePath (const std::string& path, bool write)
normed_path2 = SGPath(path2.dir()).realpath()
+ "/" + path2.file();
}
#if defined(_MSC_VER) /*for MS compilers */ || defined(_WIN32) /*needed for non MS windows compilers like MingW*/
normed_path2 = SGPath(normed_path2).str(); // convert \ to /
#endif
// Check
if (fgValidatePath_internal(normed_path1, write).empty() ||