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

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


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

diff --git a/dlls/cabinet/fci.c b/dlls/cabinet/fci.c
index 9ec1bdd..82d94ab 100644
--- a/dlls/cabinet/fci.c
+++ b/dlls/cabinet/fci.c
@@ -205,7 +205,7 @@ static FCI_Int *get_fci_ptr( HFCI hfci )
 {
     FCI_Int *fci= (FCI_Int *)hfci;
 
-    if (!fci || !fci->magic == FCI_INT_MAGIC)
+    if (!fci || fci->magic != FCI_INT_MAGIC)
     {
         SetLastError( ERROR_INVALID_HANDLE );
         return NULL;
-- 
1.7.3.4


--------------000108000706030106080902--



More information about the wine-patches mailing list