advapi32: Close hTemp on error (Coverity).

This commit is contained in:
Marcus Meissner 2013-01-05 23:32:54 +01:00 committed by Alexandre Julliard
parent 18c51a9c00
commit 2bc8e076e0
1 changed files with 1 additions and 0 deletions

View File

@ -3144,6 +3144,7 @@ static void test_GetNamedSecurityInfoA(void)
if (error != ERROR_SUCCESS && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)) if (error != ERROR_SUCCESS && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED))
{ {
win_skip("GetNamedSecurityInfoA is not implemented\n"); win_skip("GetNamedSecurityInfoA is not implemented\n");
CloseHandle(hTemp);
return; return;
} }
ok(!error, "GetNamedSecurityInfo failed with error %d\n", error); ok(!error, "GetNamedSecurityInfo failed with error %d\n", error);