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

This commit is contained in:
Paul Vriens 2011-03-12 19:09:55 +01:00 committed by Alexandre Julliard
parent 80a0eb3b96
commit 81f2a237f3
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ static FDI_Int *get_fdi_ptr( HFDI hfdi )
{ {
FDI_Int *fdi= (FDI_Int *)hfdi; FDI_Int *fdi= (FDI_Int *)hfdi;
if (!fdi || !fdi->magic == FDI_INT_MAGIC) if (!fdi || fdi->magic != FDI_INT_MAGIC)
{ {
SetLastError( ERROR_INVALID_HANDLE ); SetLastError( ERROR_INVALID_HANDLE );
return NULL; return NULL;