diff --git a/src/rcore.c b/src/rcore.c index 29885c397..b229589f7 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -1964,7 +1964,7 @@ const char *GetFileName(const char *filePath) if (filePath != NULL) fileName = strprbrk(filePath, "\\/"); - if (fileName != NULL) return filePath; + if (fileName == NULL) return filePath; return fileName + 1; }