diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-03-14 12:03:30 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-03-14 12:03:30 -0230 |
commit | aecab1893c6984f892860fbb8d806aee1421d54e (patch) | |
tree | 2df31ef5d153fdc1f6d5c917dc1f190e23204965 /cpp/src/IcePatch2/Util.cpp | |
parent | Bug 2789 (diff) | |
download | ice-aecab1893c6984f892860fbb8d806aee1421d54e.tar.bz2 ice-aecab1893c6984f892860fbb8d806aee1421d54e.tar.xz ice-aecab1893c6984f892860fbb8d806aee1421d54e.zip |
Bug 2788
Diffstat (limited to 'cpp/src/IcePatch2/Util.cpp')
-rw-r--r-- | cpp/src/IcePatch2/Util.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/IcePatch2/Util.cpp b/cpp/src/IcePatch2/Util.cpp index 53718d9438a..5b53c99c9c3 100644 --- a/cpp/src/IcePatch2/Util.cpp +++ b/cpp/src/IcePatch2/Util.cpp @@ -241,7 +241,13 @@ IcePatch2::simplify(const string& path) string::size_type pos; #ifdef _WIN32 - for(pos = 0; pos < result.size(); ++pos) + pos = 0; + if(result.find("\\\\") == 0) + { + pos = 2; + } + + for(; pos < result.size(); ++pos) { if(result[pos] == '\\') { |