Alexandre Goujon : advapi32: Fix cred domain according to tests.
Alexandre Julliard
julliard at winehq.org
Tue Jul 20 11:20:38 CDT 2010
Module: wine
Branch: master
Commit: 061eb12ca39dc6dfd58c3bc2c16586da58fddac3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=061eb12ca39dc6dfd58c3bc2c16586da58fddac3
Author: Alexandre Goujon <ale.goujon at gmail.com>
Date: Tue Jul 20 15:05:14 2010 +0200
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 7d5c286..e4ea26c 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 6b7fa26..fbefa92 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
More information about the wine-cvs
mailing list