win32: Fix bug with multiple drive paths.

This commit is contained in:
BearOso 2023-03-15 16:26:45 -05:00
parent 24cea1972c
commit d45bf0689a
1 changed files with 6 additions and 3 deletions

View File

@ -139,9 +139,12 @@ string makepath(const string &drive, const string &dir, const string &stem, cons
if (!drive.empty())
{
output += drive + ":";
if (!dir.empty() && dir[0] != SLASH_CHAR)
output += SLASH_CHAR;
if (!(dir.length() > 2 && dir[1] == ':'))
{
output += drive + ":";
if (!dir.empty() && dir[0] != SLASH_CHAR)
output += SLASH_CHAR;
}
}
if (!dir.empty())