From 68a384f8033b8e948ca09f437d7b467130f0f3ff Mon Sep 17 00:00:00 2001 From: LPFaint99 Date: Sat, 4 Jul 2009 04:24:52 +0000 Subject: [PATCH] Path is now correctly X:\ on windows instead of X:\/ Allows booting from drive root Fixes issue 1035. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3672 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/StringUtil.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/Common/Src/StringUtil.cpp b/Source/Core/Common/Src/StringUtil.cpp index 7cfe8f3c15..1909ffae65 100644 --- a/Source/Core/Common/Src/StringUtil.cpp +++ b/Source/Core/Common/Src/StringUtil.cpp @@ -381,7 +381,10 @@ void BuildCompleteFilename(std::string& _CompleteFilename, const std::string& _P // check for seperator if (_CompleteFilename[_CompleteFilename.size() - 1] != DIR_SEP_CHR) { - _CompleteFilename += DIR_SEP_CHR; +#ifdef _WIN32 + if (_CompleteFilename[_CompleteFilename.size() - 1] != '\\') +#endif + _CompleteFilename += DIR_SEP_CHR; } // add the filename