cabinet: Check correctly for the magic value (Coverity).
This commit is contained in:
parent
80a0eb3b96
commit
81f2a237f3
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue