Fix path concatenation

This commit is contained in:
momo5502
2025-02-08 18:35:51 +01:00
parent edcc090181
commit 2da494a370

View File

@@ -2936,7 +2936,8 @@ namespace
return STATUS_INVALID_HANDLE;
}
f.name = root->name + f.name;
const auto has_separator = root->name.ends_with(u"\\") || root->name.ends_with(u"/");
f.name = root->name + (has_separator ? u"" : u"\\") + f.name;
}
printer.cancel();