shithub: cstory

Download patch

ref: 30dced2587422b9d6042cc4e18854e24340dbda9
parent: 0bcf9784245fdca250080c0ddfb2d8d4e46d2bac
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Jan 26 08:52:24 EST 2020

Correct the style of some pointer checks

--- a/src/MycParam.cpp
+++ b/src/MycParam.cpp
@@ -442,7 +442,7 @@
 	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 @@
 	sprintf(path, "%s\\290.rec", gModulePath);
 
 	fp = fopen(path, "rb");
-	if (!fp)
+	if (fp == NULL)
 		return 0;
 
 	// Read data