From 5ca45bce374a5c1e5602e627a688bd0caf19779e Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 14 May 2026 20:05:25 +0200 Subject: [PATCH] Update rcore.c --- src/rcore.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rcore.c b/src/rcore.c index f5665fca0..74774e77b 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -511,7 +511,6 @@ const char *TextFormat(const char *text, ...); // Formatting of text with variab #define PLATFORM_DESKTOP_GLFW #endif - // Include platform-specific submodules #if defined(PLATFORM_DESKTOP_GLFW) #include "platforms/rcore_desktop_glfw.c" @@ -2319,7 +2318,7 @@ bool FileExists(const char *fileName) { bool result = false; - if (ACCESS(fileName) != -1) result = true; + if ((fileName != NULL) && (ACCESS(fileName) != -1)) result = true; // NOTE: Alternatively, stat() can be used instead of access() //#include