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
c233fd57
Commit
c233fd57
authored
Feb 12, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Feb 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Fix tests on systems with reduced privilege.
parent
33e32229
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
access.c
dlls/netapi32/tests/access.c
+7
-1
No files found.
dlls/netapi32/tests/access.c
View file @
c233fd57
...
...
@@ -251,6 +251,11 @@ static void run_userhandling_tests(void)
ret
=
pNetUserDel
(
NULL
,
sTooLongName
);
ok
(
ret
==
NERR_Success
,
"Deleting the user failed : %d
\n
"
,
ret
);
}
else
if
(
ret
==
ERROR_ACCESS_DENIED
)
{
skip
(
"not enough permissions to add a user
\n
"
);
return
;
}
else
ok
(
ret
==
NERR_BadUsername
||
broken
(
ret
==
NERR_PasswordTooShort
),
/* NT4 */
...
...
@@ -260,7 +265,8 @@ static void run_userhandling_tests(void)
usri
.
usri1_password
=
sTooLongPassword
;
ret
=
pNetUserAdd
(
NULL
,
1
,
(
LPBYTE
)
&
usri
,
NULL
);
ok
(
ret
==
NERR_PasswordTooShort
,
"Adding user with too long password returned 0x%08x
\n
"
,
ret
);
ok
(
ret
==
NERR_PasswordTooShort
||
ret
==
ERROR_ACCESS_DENIED
/* Win2003 */
,
"Adding user with too long password returned 0x%08x
\n
"
,
ret
);
usri
.
usri1_name
=
sTooLongName
;
usri
.
usri1_password
=
sTooLongPassword
;
...
...
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