mirror of
https://github.com/reactos/wine.git
synced 2025-02-13 16:59:37 +00:00
cabinet: Check correctly for the magic value (Coverity).
This commit is contained in:
parent
b411ba3fb0
commit
80a0eb3b96
@ -205,7 +205,7 @@ static FCI_Int *get_fci_ptr( HFCI hfci )
|
||||
{
|
||||
FCI_Int *fci= (FCI_Int *)hfci;
|
||||
|
||||
if (!fci || !fci->magic == FCI_INT_MAGIC)
|
||||
if (!fci || fci->magic != FCI_INT_MAGIC)
|
||||
{
|
||||
SetLastError( ERROR_INVALID_HANDLE );
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user