From: Rebecca N. Palmer Date: Tue, 14 Jul 2015 07:00:22 +0000 (+0100) Subject: fgValidatePath: fix \ vs / Windows bug X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6957a17434685407f13c81c2ea43327798c2f7b6;p=flightgear.git fgValidatePath: fix \ vs / Windows bug --- diff --git a/src/Main/util.cxx b/src/Main/util.cxx index 40d3244d6..d6be946fa 100644 --- a/src/Main/util.cxx +++ b/src/Main/util.cxx @@ -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() ||