mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-18 11:13:57 +00:00
Fix path concatenation
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user