From e646fc5b5d55869a7d497e69f1e513c226e6e75d Mon Sep 17 00:00:00 2001 From: Roman Nekrassow Date: Sat, 14 Mar 2015 12:35:18 +0100 Subject: [PATCH] [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: . --- drivers/windows/dir_access_windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/windows/dir_access_windows.cpp b/drivers/windows/dir_access_windows.cpp index d1e97661056..aa96faac1be 100644 --- a/drivers/windows/dir_access_windows.cpp +++ b/drivers/windows/dir_access_windows.cpp @@ -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; };