diff options
| -rw-r--r-- | opengl/libs/EGL/Loader.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp index 9822849e3f..91a34558aa 100644 --- a/opengl/libs/EGL/Loader.cpp +++ b/opengl/libs/EGL/Loader.cpp @@ -407,9 +407,8 @@ static void* load_system_driver(const char* kind) { DIR* d = opendir(search); if (d != NULL) { - struct dirent cur; struct dirent* e; - while (readdir_r(d, &cur, &e) == 0 && e) { + while ((e = readdir(d)) != NULL) { if (e->d_type == DT_DIR) { continue; } |