Skip to content

Commit da1731d

Browse files
committed
[windows] more path
1 parent fb6d7ef commit da1731d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/base/fs_util.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,11 @@ path_transcoder::to_native(std::string arg)
268268

269269
if (arg[0] == '/') {
270270
arg.erase(0, 1);
271+
arg.insert(1, ":");
271272
}
272273
if (this->pt_root_name_capitalized.value()) {
273274
arg[0] = toupper(arg[0]);
274275
}
275-
arg.insert(1, ":");
276276
std::replace(arg.begin(), arg.end(), '/', '\\');
277277

278278
return arg;

0 commit comments

Comments
 (0)