Commit 80a0eb3b authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

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

parent b411ba3f
...@@ -205,7 +205,7 @@ static FCI_Int *get_fci_ptr( HFCI hfci ) ...@@ -205,7 +205,7 @@ static FCI_Int *get_fci_ptr( HFCI hfci )
{ {
FCI_Int *fci= (FCI_Int *)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 ); SetLastError( ERROR_INVALID_HANDLE );
return NULL; return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment