Michael Stefaniuc : advapi/tests: CreateFile returns INVALID_HANDLE_VALUE on error (Smatch).

Alexandre Julliard julliard at winehq.org
Tue Aug 19 08:46:33 CDT 2008


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Aug 18 22:31:22 2008 +0200

advapi/tests: CreateFile returns INVALID_HANDLE_VALUE on error (Smatch).

---

 dlls/advapi32/tests/security.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
index 6b0ecfa..f2bafce 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -2496,7 +2496,7 @@ static void test_GetSecurityInfo(void)
     /* Create something.  Files have lots of associated security info.  */
     obj = CreateFile(myARGV[0], GENERIC_READ, FILE_SHARE_READ, NULL,
                      OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
-    if (!obj)
+    if (obj == INVALID_HANDLE_VALUE)
     {
         skip("Couldn't create an object for GetSecurityInfo test\n");
         return;




More information about the wine-cvs mailing list