Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a2d53016
Commit
a2d53016
authored
May 05, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
May 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Make the tests pass under XP that enforces a strict password policy.
parent
76029ee9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
access.c
dlls/netapi32/tests/access.c
+6
-3
No files found.
dlls/netapi32/tests/access.c
View file @
a2d53016
...
...
@@ -50,8 +50,8 @@ static WCHAR sTooLongPassword[] = {'a','b','c','d','e','f','g','h','a','b','c','
'a'
,
0
};
static
WCHAR
sTestUserName
[]
=
{
't'
,
'e'
,
's'
,
't'
,
'u'
,
's'
,
'e'
,
'r'
,
0
};
static
WCHAR
sTestUserOldPass
[]
=
{
'
o'
,
'l'
,
'd'
,
'p'
,
'a'
,
's'
,
's
'
,
0
};
static
WCHAR
sTestUserNewPass
[]
=
{
'
n'
,
'e'
,
'w'
,
'p'
,
'a'
,
's'
,
's
'
,
0
};
static
WCHAR
sTestUserOldPass
[]
=
{
'
O'
,
'l'
,
'd'
,
'P'
,
'a'
,
's'
,
's'
,
'W'
,
'0'
,
'r'
,
'd'
,
'S'
,
'e'
,
't'
,
'!'
,
'~
'
,
0
};
static
WCHAR
sTestUserNewPass
[]
=
{
'
N'
,
'e'
,
'w'
,
'P'
,
'a'
,
's'
,
's'
,
'W'
,
'0'
,
'r'
,
'd'
,
'S'
,
'e'
,
't'
,
'!'
,
'~
'
,
0
};
static
const
WCHAR
sBadNetPath
[]
=
{
'\\'
,
'\\'
,
'B'
,
'a'
,
' '
,
' '
,
'p'
,
'a'
,
't'
,
'h'
,
0
};
static
const
WCHAR
sInvalidName
[]
=
{
'\\'
,
0
};
static
const
WCHAR
sInvalidName2
[]
=
{
'\\'
,
'\\'
,
0
};
...
...
@@ -301,7 +301,10 @@ static void run_userhandling_tests(void)
ret
=
pNetUserChangePassword
(
NULL
,
sTestUserName
,
sTestUserOldPass
,
sTestUserOldPass
);
ok
(
ret
==
NERR_Success
,
/* Apparently NERR_PasswordTooShort can be returned on windows xp if a
* strict password policy is enforced
*/
ok
(
ret
==
NERR_Success
||
ret
==
NERR_PasswordTooShort
,
"Changing old password to old password returned 0x%08x.
\n
"
,
ret
);
ret
=
pNetUserChangePassword
(
NULL
,
sTestUserName
,
sTestUserNewPass
,
...
...
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