[PATCH 4/4] Check correctly for the magic value (Coverity)

Paul Vriens Paul.Vriens.Wine at gmail.com
Sat Mar 12 12:09:55 CST 2011


---
 dlls/cabinet/fdi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/cabinet/fdi.c b/dlls/cabinet/fdi.c
index 27a969b..5fc22cd 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;
-- 
1.7.3.4


--------------070002020107080503080403--



More information about the wine-patches mailing list