wintrust: FindFirstFile() returns INVALID_HANDLE_VALUE on error (Smatch).

Michael Stefaniuc mstefani at redhat.de
Mon Dec 22 16:31:43 CST 2008


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

diff --git a/dlls/wintrust/crypt.c b/dlls/wintrust/crypt.c
index 4055c55..84df3d9 100644
--- a/dlls/wintrust/crypt.c
+++ b/dlls/wintrust/crypt.c
@@ -308,7 +308,7 @@ HCATINFO WINAPI CryptCATAdminEnumCatalogFromHash(HCATADMIN hCatAdmin, BYTE* pbHa
         ca->find = FindFirstFileW(path, &data);
 
         HeapFree(GetProcessHeap(), 0, path);
-        if (!ca->find)
+        if (ca->find == INVALID_HANDLE_VALUE)
         {
             CryptReleaseContext(prov, 0);
             return NULL;
-- 
1.6.1.rc3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081222/adfb1dac/attachment.pgp 


More information about the wine-patches mailing list