From 81f2a237f35bed6bc6009ca9cd6bdec1acc1f608 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Sat, 12 Mar 2011 19:09:55 +0100 Subject: [PATCH] cabinet: Check correctly for the magic value (Coverity). --- dlls/cabinet/fdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/cabinet/fdi.c b/dlls/cabinet/fdi.c index 27a969b45c1..5fc22cdb029 100644 --- a/dlls/cabinet/fdi.c +++ b/dlls/cabinet/fdi.c @@ -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;