cabinet: Check correctly for the magic value (Coverity).

oldstable
Paul Vriens 2011-03-12 19:09:50 +01:00 committed by Alexandre Julliard
parent b411ba3fb0
commit 80a0eb3b96
1 changed files with 1 additions and 1 deletions

View File

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