Correct the style of some pointer checks
This commit is contained in:
parent
0bcf978424
commit
30dced2587
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue