浏览代码

WARNING: Fix breaking issue (introduced some days ago)

Ray 1 年之前
父节点
当前提交
2e77443209
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/rcore.c

+ 1 - 1
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;
 }