mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 11:56:49 +01:00
Fix DirAccessWindows::make_dir() choking on ".."
`CreateDirectoryW()` chokes on absolute paths that contain `..` example: "C:\\workspace\\..\\games\\assets" Simplifying the path before creating the dir fixes this. (cherry picked from commit 0d3d5ac76983de35b8c1dddd65a4c2f8be74d555)
This commit is contained in:
parent
7cfc7d4106
commit
90a8cad6ed
@ -155,7 +155,7 @@ Error DirAccessWindows::make_dir(String p_dir) {
|
|||||||
p_dir = current_dir.plus_file(p_dir);
|
p_dir = current_dir.plus_file(p_dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
p_dir = p_dir.replace("/", "\\");
|
p_dir = p_dir.simplify_path().replace("/", "\\");
|
||||||
|
|
||||||
bool success;
|
bool success;
|
||||||
int err;
|
int err;
|
||||||
|
Loading…
Reference in New Issue
Block a user