From ccf79e25591366b6eeeabd1bc57940e424e1030a Mon Sep 17 00:00:00 2001 From: Clownacy Date: Wed, 8 Jul 2020 16:54:31 +0100 Subject: [PATCH] Code style tweak --- src/Generic.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Generic.cpp b/src/Generic.cpp index 2bdb6b58..3173ac6e 100644 --- a/src/Generic.cpp +++ b/src/Generic.cpp @@ -208,15 +208,16 @@ int GetDateLimit(SYSTEMTIME *system_time_low, SYSTEMTIME *system_time_high) 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; }