Module: wine Branch: master Commit: 80a0eb3b963fbb43a59fb4a8e3d4f5c598b9e7bb URL: http://source.winehq.org/git/wine.git/?a=commit;h=80a0eb3b963fbb43a59fb4a8e3...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Sat Mar 12 19:09:50 2011 +0100
cabinet: Check correctly for the magic value (Coverity).
---
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;