summaryrefslogtreecommitdiff
path: root/drivers/windows
diff options
context:
space:
mode:
authorRoman Nekrassow <roman.nekrassow@gmail.com>2015-03-14 12:35:18 +0100
committerRoman Nekrassow <roman.nekrassow@gmail.com>2015-03-14 12:35:18 +0100
commite646fc5b5d55869a7d497e69f1e513c226e6e75d (patch)
treecaf1859e0094fbb98d5d18598e1f6205cf4b1da1 /drivers/windows
parent51b8102f14ff521334d956f9ebeef7b6e873a957 (diff)
[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: .
Diffstat (limited to 'drivers/windows')
-rw-r--r--drivers/windows/dir_access_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/windows/dir_access_windows.cpp b/drivers/windows/dir_access_windows.cpp
index d1e9766105..aa96faac1b 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;
};