Make memcmp usage clearer

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
Gabriel Ravier 2019-11-05 10:43:09 +01:00
parent 4e322f25c4
commit 3c920996b8

View file

@ -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;