mirror of https://github.com/snes9xgit/snes9x.git
win32: Fix bug with multiple drive paths.
This commit is contained in:
parent
24cea1972c
commit
d45bf0689a
|
@ -138,11 +138,14 @@ string makepath(const string &drive, const string &dir, const string &stem, cons
|
|||
string output;
|
||||
|
||||
if (!drive.empty())
|
||||
{
|
||||
if (!(dir.length() > 2 && dir[1] == ':'))
|
||||
{
|
||||
output += drive + ":";
|
||||
if (!dir.empty() && dir[0] != SLASH_CHAR)
|
||||
output += SLASH_CHAR;
|
||||
}
|
||||
}
|
||||
|
||||
if (!dir.empty())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue