Commit 81f2a237 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

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

parent 80a0eb3b
......@@ -196,7 +196,7 @@ static FDI_Int *get_fdi_ptr( HFDI 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 );
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