shithub: cstory

Download patch

ref: ccf79e25591366b6eeeabd1bc57940e424e1030a
parent: 56527561294fdcba72f5493c27ce47fd8f6ccb70
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Jul 8 12:54:31 EDT 2020

Code style tweak

--- a/src/Generic.cpp
+++ b/src/Generic.cpp
@@ -208,15 +208,16 @@
 BOOL IsKeyFile(const char *name)
 {
 	char path[MAX_PATH];
+	FILE *fp;
 
 	sprintf(path, "%s\\%s", gModulePath, name);
 
-	FILE *file = fopen(path, "rb");
+	fp = fopen(path, "rb");
 
-	if (file == NULL)
+	if (fp == NULL)
 		return FALSE;
 
-	fclose(file);
+	fclose(fp);
 	return TRUE;
 }