1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

[Fix] make_dir_recursive on Windows

function normally tries to create c: which isn't possible, because the access is denied, handling ERROR_ACCESS_DENIED as ERR_ALREADY_EXISTS lets the function skip the creation of c: .
This commit is contained in:
Roman Nekrassow
2015-03-14 12:35:18 +01:00
parent 51b8102f14
commit e646fc5b5d

View File

@@ -270,7 +270,7 @@ Error DirAccessWindows::make_dir(String p_dir) {
return OK;
};
if (err == ERROR_ALREADY_EXISTS) {
if (err == ERROR_ALREADY_EXISTS || err == ERROR_ACCESS_DENIED) {
return ERR_ALREADY_EXISTS;
};