diff --git a/spi00in.c b/spi00in.c index 7b0917c..1c81eb4 100644 --- a/spi00in.c +++ b/spi00in.c @@ -54,7 +54,7 @@ EXPORT(int) IsSupported(LPCSTR filename, DWORD_PTR variant) ret = 0; buffer = NULL; - if ((variant & 0xFFFF0000) == 0) + if ((variant & (~(DWORD_PTR)0xFFFF)) == 0) { buffer = malloc(header_size); if (buffer == NULL)