Skip to content

Commit

Permalink
fix: 64 bit pointer check for IsSupported
Browse files Browse the repository at this point in the history
  • Loading branch information
uyjulian committed Sep 25, 2024
1 parent 3631d85 commit 86ece46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spi00in.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 86ece46

Please sign in to comment.