From 3b8aeb913b5995295f27d3f3bd5086ca87e44b1f Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Mon, 18 Aug 2008 22:31:22 +0200 Subject: [PATCH] advapi/tests: CreateFile returns INVALID_HANDLE_VALUE on error (Smatch). --- dlls/advapi32/tests/security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c index 6b0ecfada6f..f2bafce60e8 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; -- 2.11.4.GIT