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

Alexandre Julliard julliard at winehq.org
Mon Mar 14 14:29:34 CDT 2011


Module: wine
Branch: master
Commit: 81f2a237f35bed6bc6009ca9cd6bdec1acc1f608
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=81f2a237f35bed6bc6009ca9cd6bdec1acc1f608

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Sat Mar 12 19:09:55 2011 +0100

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

---

 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;




More information about the wine-cvs mailing list