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

@ -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())
{