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

Revert "Fix Directory Open Check"

This reverts commit 3f898f5207.
This commit is contained in:
Nathan Franke
2020-07-06 01:17:16 -05:00
committed by Aaron Franke
parent 9de0439a45
commit b9e1db7e03
3 changed files with 33 additions and 30 deletions

View File

@@ -69,11 +69,7 @@ Error DirAccessWindows::list_dir_begin() {
list_dir_end();
p->h = FindFirstFileExW((current_dir + "\\*").c_str(), FindExInfoStandard, &p->fu, FindExSearchNameMatch, NULL, 0);
if (p->h == INVALID_HANDLE_VALUE) {
return ERR_CANT_OPEN;
}
return OK;
return (p->h == INVALID_HANDLE_VALUE) ? ERR_CANT_OPEN : OK;
}
String DirAccessWindows::get_next() {