From 30dced2587422b9d6042cc4e18854e24340dbda9 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sun, 26 Jan 2020 13:52:24 +0000 Subject: [PATCH] Correct the style of some pointer checks --- src/MycParam.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MycParam.cpp b/src/MycParam.cpp index 8bba62f1..a6328c23 100644 --- a/src/MycParam.cpp +++ b/src/MycParam.cpp @@ -442,7 +442,7 @@ BOOL SaveTimeCounter(void) sprintf(path, "%s\\290.rec", gModulePath); fp = fopen(path, "rb"); - if (fp) + if (fp != NULL) { // Read data fread(&rec, sizeof(REC), 1, fp); @@ -493,7 +493,7 @@ int LoadTimeCounter(void) sprintf(path, "%s\\290.rec", gModulePath); fp = fopen(path, "rb"); - if (!fp) + if (fp == NULL) return 0; // Read data