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
4d6d0955
Commit
4d6d0955
authored
Aug 07, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Aug 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Fix two tests for w2k8.
parent
fc8545b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
security.c
dlls/advapi32/tests/security.c
+6
-4
No files found.
dlls/advapi32/tests/security.c
View file @
4d6d0955
...
...
@@ -586,8 +586,9 @@ static void test_lookupPrivilegeName(void)
luid
.
LowPart
=
SE_CREATE_TOKEN_PRIVILEGE
;
cchName
=
sizeof
(
buf
);
ret
=
pLookupPrivilegeNameA
(
"b0gu5.Nam3"
,
&
luid
,
buf
,
&
cchName
);
ok
(
!
ret
&&
GetLastError
()
==
RPC_S_SERVER_UNAVAILABLE
,
"LookupPrivilegeNameA didn't fail with RPC_S_SERVER_UNAVAILABLE: %d
\n
"
,
ok
(
!
ret
&&
(
GetLastError
()
==
RPC_S_SERVER_UNAVAILABLE
||
GetLastError
()
==
RPC_S_INVALID_NET_ADDR
)
/* w2k8 */
,
"LookupPrivilegeNameA didn't fail with RPC_S_SERVER_UNAVAILABLE or RPC_S_INVALID_NET_ADDR: %d
\n
"
,
GetLastError
());
}
...
...
@@ -644,8 +645,9 @@ static void test_lookupPrivilegeValue(void)
/* check a bogus system name */
ret
=
pLookupPrivilegeValueA
(
"b0gu5.Nam3"
,
"SeCreateTokenPrivilege"
,
&
luid
);
ok
(
!
ret
&&
GetLastError
()
==
RPC_S_SERVER_UNAVAILABLE
,
"LookupPrivilegeValueA didn't fail with RPC_S_SERVER_UNAVAILABLE: %d
\n
"
,
ok
(
!
ret
&&
(
GetLastError
()
==
RPC_S_SERVER_UNAVAILABLE
||
GetLastError
()
==
RPC_S_INVALID_NET_ADDR
)
/* w2k8 */
,
"LookupPrivilegeValueA didn't fail with RPC_S_SERVER_UNAVAILABLE or RPC_S_INVALID_NET_ADDR: %d
\n
"
,
GetLastError
());
/* check a NULL string */
ret
=
pLookupPrivilegeValueA
(
NULL
,
0
,
&
luid
);
...
...
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