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
f15af94d
Commit
f15af94d
authored
Nov 06, 2006
by
Andrey Turkin
Committed by
Alexandre Julliard
Nov 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Test for OpenProcessToken with MAXIMUM_ALLOWED access.
parent
9c377f0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
security.c
dlls/advapi32/tests/security.c
+12
-0
No files found.
dlls/advapi32/tests/security.c
View file @
f15af94d
...
...
@@ -786,6 +786,18 @@ static void test_token_attr(void)
DWORD
i
,
GLE
;
LPSTR
SidString
;
/* cygwin-like use case */
ret
=
OpenProcessToken
(
GetCurrentProcess
(),
MAXIMUM_ALLOWED
,
&
Token
);
ok
(
ret
,
"OpenProcessToken failed with error %d
\n
"
,
GetLastError
());
if
(
ret
)
{
BYTE
buf
[
1024
];
DWORD
bufsize
=
sizeof
(
buf
);
ret
=
GetTokenInformation
(
Token
,
TokenUser
,(
void
*
)
buf
,
bufsize
,
&
bufsize
);
todo_wine
ok
(
ret
,
"GetTokenInformation failed with error %d
\n
"
,
GetLastError
());
CloseHandle
(
Token
);
}
if
(
!
pConvertSidToStringSidA
)
return
;
...
...
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