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
1988e6ea
Commit
1988e6ea
authored
Oct 15, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Remove superfluous casts of void pointers to other pointer types.
parent
bb2d8577
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
security.c
dlls/advapi32/tests/security.c
+3
-3
No files found.
dlls/advapi32/tests/security.c
View file @
1988e6ea
...
...
@@ -1962,7 +1962,7 @@ static void test_impersonation_level(void)
ret
=
GetTokenInformation
(
Token
,
TokenUser
,
NULL
,
0
,
&
Size
);
error
=
GetLastError
();
ok
(
!
ret
&&
error
==
ERROR_INSUFFICIENT_BUFFER
,
"GetTokenInformation(TokenUser) should have failed with ERROR_INSUFFICIENT_BUFFER instead of %d
\n
"
,
error
);
User
=
(
TOKEN_USER
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
Size
);
User
=
HeapAlloc
(
GetProcessHeap
(),
0
,
Size
);
ret
=
GetTokenInformation
(
Token
,
TokenUser
,
User
,
Size
,
&
Size
);
ok
(
ret
,
"GetTokenInformation(TokenUser) failed with error %d
\n
"
,
GetLastError
());
HeapFree
(
GetProcessHeap
(),
0
,
User
);
...
...
@@ -1971,11 +1971,11 @@ static void test_impersonation_level(void)
ret
=
GetTokenInformation
(
Token
,
TokenPrivileges
,
NULL
,
0
,
&
Size
);
error
=
GetLastError
();
ok
(
!
ret
&&
error
==
ERROR_INSUFFICIENT_BUFFER
,
"GetTokenInformation(TokenPrivileges) should have failed with ERROR_INSUFFICIENT_BUFFER instead of %d
\n
"
,
error
);
Privileges
=
(
TOKEN_PRIVILEGES
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
Size
);
Privileges
=
HeapAlloc
(
GetProcessHeap
(),
0
,
Size
);
ret
=
GetTokenInformation
(
Token
,
TokenPrivileges
,
Privileges
,
Size
,
&
Size
);
ok
(
ret
,
"GetTokenInformation(TokenPrivileges) failed with error %d
\n
"
,
GetLastError
());
PrivilegeSet
=
(
PRIVILEGE_SET
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
FIELD_OFFSET
(
PRIVILEGE_SET
,
Privilege
[
Privileges
->
PrivilegeCount
]));
PrivilegeSet
=
HeapAlloc
(
GetProcessHeap
(),
0
,
FIELD_OFFSET
(
PRIVILEGE_SET
,
Privilege
[
Privileges
->
PrivilegeCount
]));
PrivilegeSet
->
PrivilegeCount
=
Privileges
->
PrivilegeCount
;
memcpy
(
PrivilegeSet
->
Privilege
,
Privileges
->
Privileges
,
PrivilegeSet
->
PrivilegeCount
*
sizeof
(
PrivilegeSet
->
Privilege
[
0
]));
PrivilegeSet
->
Control
=
PRIVILEGE_SET_ALL_NECESSARY
;
...
...
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