From 061eb12ca39dc6dfd58c3bc2c16586da58fddac3 Mon Sep 17 00:00:00 2001 From: Alexandre Goujon Date: Tue, 20 Jul 2010 15:05:14 +0200 Subject: [PATCH] advapi32: Fix cred domain according to tests. --- dlls/advapi32/cred.c | 3 +++ dlls/advapi32/tests/cred.c | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/advapi32/cred.c b/dlls/advapi32/cred.c index 7d5c286fe0a..e4ea26cc4ad 100644 --- a/dlls/advapi32/cred.c +++ b/dlls/advapi32/cred.c @@ -1820,6 +1820,9 @@ BOOL WINAPI CredWriteW(PCREDENTIALW Credential, DWORD Flags) SetLastError(ERROR_BAD_USERNAME); return FALSE; } + + Credential->CredentialBlobSize = 0; + Credential->CredentialBlob = NULL; } #ifdef __APPLE__ diff --git a/dlls/advapi32/tests/cred.c b/dlls/advapi32/tests/cred.c index 6b7fa26654b..fbefa92ca2f 100644 --- a/dlls/advapi32/tests/cred.c +++ b/dlls/advapi32/tests/cred.c @@ -202,9 +202,7 @@ static void check_blob(int line, DWORD cred_type, PCREDENTIALA cred) { if (cred_type == CRED_TYPE_DOMAIN_PASSWORD) { - todo_wine ok_(__FILE__, line)(cred->CredentialBlobSize == 0, "expected CredentialBlobSize of 0 but got %d\n", cred->CredentialBlobSize); - todo_wine ok_(__FILE__, line)(!cred->CredentialBlob, "expected NULL credentials but got %p\n", cred->CredentialBlob); } else