Make memcmp usage clearer
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
parent
4e322f25c4
commit
3c920996b8
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ BOOL LoadMapData2(const char *path_map)
|
|||
char check[3];
|
||||
fread(check, 1, 3, fp);
|
||||
|
||||
if (memcmp(check, code_pxma, 3))
|
||||
if (memcmp(check, code_pxma, 3) != 0)
|
||||
{
|
||||
fclose(fp);
|
||||
return FALSE;
|
||||
|
|
Loading…
Add table
Reference in a new issue