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
4ece5dee
Commit
4ece5dee
authored
May 28, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
May 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Fix tests when the machine is on DOMAIN.
parent
13585ddd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
access.c
dlls/netapi32/tests/access.c
+7
-4
No files found.
dlls/netapi32/tests/access.c
View file @
4ece5dee
...
...
@@ -296,7 +296,8 @@ static void run_userhandling_tests(void)
ret
=
pNetUserChangePassword
(
NULL
,
sNonexistentUser
,
sTestUserOldPass
,
sTestUserNewPass
);
ok
(
ret
==
NERR_UserNotFound
||
ret
==
ERROR_INVALID_PASSWORD
,
ok
(
ret
==
NERR_UserNotFound
||
ret
==
ERROR_INVALID_PASSWORD
||
ret
==
ERROR_CANT_ACCESS_DOMAIN_INFO
,
"Changing password for nonexistent user returned 0x%08x.
\n
"
,
ret
);
ret
=
pNetUserChangePassword
(
NULL
,
sTestUserName
,
sTestUserOldPass
,
...
...
@@ -304,12 +305,13 @@ static void run_userhandling_tests(void)
/* Apparently NERR_PasswordTooShort can be returned on windows xp if a
* strict password policy is enforced
*/
ok
(
ret
==
NERR_Success
||
ret
==
NERR_PasswordTooShort
,
ok
(
ret
==
NERR_Success
||
ret
==
NERR_PasswordTooShort
||
ret
==
ERROR_CANT_ACCESS_DOMAIN_INFO
||
ret
==
ERROR_INVALID_PASSWORD
,
"Changing old password to old password returned 0x%08x.
\n
"
,
ret
);
ret
=
pNetUserChangePassword
(
NULL
,
sTestUserName
,
sTestUserNewPass
,
sTestUserOldPass
);
ok
(
ret
==
ERROR_INVALID_PASSWORD
,
ok
(
ret
==
ERROR_INVALID_PASSWORD
||
ret
==
ERROR_CANT_ACCESS_DOMAIN_INFO
,
"Trying to change password giving an invalid password returned 0x%08x.
\n
"
,
ret
);
ret
=
pNetUserChangePassword
(
NULL
,
sTestUserName
,
sTestUserOldPass
,
...
...
@@ -319,7 +321,8 @@ static void run_userhandling_tests(void)
ret
=
pNetUserChangePassword
(
NULL
,
sTestUserName
,
sTestUserOldPass
,
sTestUserNewPass
);
ok
(
ret
==
NERR_Success
,
"Changing the password correctly returned 0x%08x.
\n
"
,
ret
);
ok
(
ret
==
NERR_Success
||
ret
==
ERROR_CANT_ACCESS_DOMAIN_INFO
||
ret
==
ERROR_INVALID_PASSWORD
,
"Changing the password correctly returned 0x%08x.
\n
"
,
ret
);
ret
=
pNetUserDel
(
NULL
,
sTestUserName
);
ok
(
ret
==
NERR_Success
,
"Deleting the user failed.
\n
"
);
...
...
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