瀏覽代碼

REVIEWED: SaveFileText() error checking

pull/1428/head
Ray 4 年之前
父節點
當前提交
05ab39ed9f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/utils.c

+ 1
- 1
src/utils.c 查看文件

@ -280,7 +280,7 @@ void SaveFileText(const char *fileName, char *text)
{
int count = fprintf(file, "%s", text);
if (count == 0) TRACELOG(LOG_WARNING, "FILEIO: [%s] Failed to write text file", fileName);
if (count < 0) TRACELOG(LOG_WARNING, "FILEIO: [%s] Failed to write text file", fileName);
else TRACELOG(LOG_INFO, "FILEIO: [%s] Text file saved successfully", fileName);
fclose(file);

Loading…
取消
儲存