mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
Fix Directory Open Check
This commit is contained in:
parent
a8e330ea19
commit
09aeb7706b
3 changed files with 30 additions and 18 deletions
|
|
@ -67,7 +67,11 @@ Error DirAccessWindows::list_dir_begin() {
|
|||
list_dir_end();
|
||||
p->h = FindFirstFileExW((current_dir + "\\*").c_str(), FindExInfoStandard, &p->fu, FindExSearchNameMatch, nullptr, 0);
|
||||
|
||||
return (p->h == INVALID_HANDLE_VALUE) ? ERR_CANT_OPEN : OK;
|
||||
if (p->h == INVALID_HANDLE_VALUE) {
|
||||
return ERR_CANT_OPEN;
|
||||
}
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
String DirAccessWindows::get_next() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue