Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7b8e8004
Commit
7b8e8004
authored
Aug 28, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Aug 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Fix a few failing tests in Vista.
parent
ce313a5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
cred.c
dlls/advapi32/tests/cred.c
+10
-4
No files found.
dlls/advapi32/tests/cred.c
View file @
7b8e8004
...
...
@@ -97,8 +97,12 @@ static void test_CredWriteA(void)
SetLastError
(
0xdeadbeef
);
ret
=
pCredWriteA
(
&
new_cred
,
0
);
ok
(
!
ret
&&
(
GetLastError
()
==
ERROR_BAD_USERNAME
||
GetLastError
()
==
ERROR_NO_SUCH_LOGON_SESSION
/* Vista */
),
"CredWrite with username without domain should return ERROR_BAD_USERNAME or ERROR_NO_SUCH_LOGON_SESSION not %d
\n
"
,
GetLastError
());
ok
(
!
ret
,
"CredWrite with username without domain should have failed
\n
"
);
ok
(
GetLastError
()
==
ERROR_BAD_USERNAME
||
GetLastError
()
==
ERROR_NO_SUCH_LOGON_SESSION
||
/* Vista */
broken
(
GetLastError
()
==
ERROR_IO_PENDING
),
"CredWrite with username without domain should return ERROR_BAD_USERNAME"
"or ERROR_NO_SUCH_LOGON_SESSION not %d
\n
"
,
GetLastError
());
new_cred
.
UserName
=
NULL
;
SetLastError
(
0xdeadbeef
);
...
...
@@ -175,10 +179,12 @@ static void test_generic(void)
{
if
(
!
strcmp
(
creds
[
i
]
->
TargetName
,
TEST_TARGET_NAME
))
{
ok
(
creds
[
i
]
->
Type
==
CRED_TYPE_GENERIC
,
"expected creds[%d]->Type CRED_TYPE_GENERIC but got %d
\n
"
,
i
,
creds
[
i
]
->
Type
);
ok
(
creds
[
i
]
->
Type
==
CRED_TYPE_GENERIC
||
creds
[
i
]
->
Type
==
CRED_TYPE_DOMAIN_PASSWORD
,
/* Vista */
"expected creds[%d]->Type CRED_TYPE_GENERIC or CRED_TYPE_DOMAIN_PASSWORD but got %d
\n
"
,
i
,
creds
[
i
]
->
Type
);
ok
(
!
creds
[
i
]
->
Flags
,
"expected creds[%d]->Flags 0 but got 0x%x
\n
"
,
i
,
creds
[
i
]
->
Flags
);
ok
(
!
strcmp
(
creds
[
i
]
->
Comment
,
"Comment"
),
"expected creds[%d]->Comment
\"
Comment
\"
but got
\"
%s
\"\n
"
,
i
,
creds
[
i
]
->
Comment
);
check_blob
(
__LINE__
,
CRED_TYPE_GENERIC
,
creds
[
i
]);
check_blob
(
__LINE__
,
creds
[
i
]
->
Type
,
creds
[
i
]);
ok
(
creds
[
i
]
->
Persist
,
"expected creds[%d]->Persist CRED_PERSIST_ENTERPRISE but got %d
\n
"
,
i
,
creds
[
i
]
->
Persist
);
ok
(
!
strcmp
(
creds
[
i
]
->
UserName
,
"winetest"
),
"expected creds[%d]->UserName
\"
winetest
\"
but got
\"
%s
\"\n
"
,
i
,
creds
[
i
]
->
UserName
);
found
=
TRUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment