1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fixed dir access return value, changed it to Error like all other funcs

This commit is contained in:
Juan Linietsky
2017-01-14 09:16:41 -03:00
parent 7b9f2d9929
commit da4170540c
12 changed files with 21 additions and 21 deletions

View File

@@ -59,7 +59,7 @@ struct DirAccessWindowsPrivate {
// CreateFolderAsync
bool DirAccessWindows::list_dir_begin() {
Error DirAccessWindows::list_dir_begin() {
_cisdir=false;
_cishidden=false;
@@ -67,7 +67,7 @@ bool DirAccessWindows::list_dir_begin() {
list_dir_end();
p->h = FindFirstFileExW((current_dir+"\\*").c_str(), FindExInfoStandard, &p->fu, FindExSearchNameMatch, NULL, 0);
return (p->h==INVALID_HANDLE_VALUE);
return (p->h==INVALID_HANDLE_VALUE) ? ERR_CANT_OPEN : OK;
}