secur32: Fix crash under win98.

This commit is contained in:
Alistair Leslie-Hughes 2008-06-18 21:28:10 +10:00 committed by Alexandre Julliard
parent efb90c7fee
commit e53e82bf12
1 changed files with 2 additions and 1 deletions

View File

@ -216,7 +216,8 @@ static void testAcquireSecurityContext(void)
st = pAcquireCredentialsHandleA(NULL, unisp_name_a, SECPKG_CRED_OUTBOUND,
NULL, NULL, NULL, NULL, &cred, NULL);
ok(st == SEC_E_OK, "AcquireCredentialsHandleA failed: %08x\n", st);
pFreeCredentialsHandle(&cred);
if(st == SEC_E_OK)
pFreeCredentialsHandle(&cred);
memset(&cred, 0, sizeof(cred));
st = pAcquireCredentialsHandleA(NULL, unisp_name_a, SECPKG_CRED_OUTBOUND,
NULL, NULL, NULL, NULL, &cred, &exp);