DSPCodeUtil some code fixing

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3485 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2009-06-17 23:36:04 +00:00
parent a536460067
commit 37ceb042e1
2 changed files with 10 additions and 9 deletions

View File

@ -338,14 +338,14 @@ bool SplitPath(const std::string& full_path, std::string* _pPath, std::string* _
if (last_slash == std::string::npos)
{
return false;
return false; // FIXME return the filename
}
size_t last_dot = full_path.rfind('.');
if ((last_dot == std::string::npos) || (last_dot < last_slash))
{
return false;
return false; // FIXME why missing . is critical?
}
if (_pPath)
@ -459,4 +459,4 @@ void NormalizeDirSep(std::string* str)
str->replace(i, 1, DIR_SEP);
}
#endif
}
}