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
This commit is contained in:
LPFaint99 2009-07-04 04:24:52 +00:00
parent 1b936a4f71
commit 68a384f803
1 changed files with 4 additions and 1 deletions

View File

@ -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