瀏覽代碼

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 (filePath != NULL) fileName = strprbrk(filePath, "\\/");
 
 
-    if (fileName != NULL) return filePath;
+    if (fileName == NULL) return filePath;
 
 
     return fileName + 1;
     return fileName + 1;
 }
 }