浏览代码

* another instance of ['/','\'] replaced with AllowDirectorySeparators

Nikolay Nikolov 4 年之前
父节点
当前提交
60d350f067
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/wasi/sysdir.inc

+ 1 - 1
rtl/wasi/sysdir.inc

@@ -107,7 +107,7 @@ begin
   new_dir:=current_dirs[new_drive_nr].dir_name;
   if s<>'' then
   begin
-    if s[1] in ['/','\'] then
+    if s[1] in AllowDirectorySeparators then
     begin
       delete(s,1,1);
       new_dir:=DirectorySeparator;