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

This commit is contained in:
Michael Stefaniuc 2008-08-18 22:31:22 +02:00 committed by Alexandre Julliard
parent 739d89369b
commit 3b8aeb913b

View file

@ -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;