Skip to content

Commit c6b256a

Browse files
committed
Normalize '..' in path to fix Ramdisk problems.
1 parent b26a1f9 commit c6b256a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

source/CScriptEngine.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,8 +1519,9 @@ namespace CLEO
15191519
else
15201520
{
15211521
// store script file directory and name
1522-
FS::path path = szFileName;
1523-
path = FS::weakly_canonical(path);
1522+
std::string pathStr = szFileName;
1523+
FilepathNormalize(pathStr, false);
1524+
FS::path path = FS::weakly_canonical(pathStr);
15241525

15251526
// file exists?
15261527
if (!FS::is_regular_file(path))

0 commit comments

Comments
 (0)