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
7596e3dd
Commit
7596e3dd
authored
Jun 27, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Remove superfluous casts of void pointers to other pointer types.
parent
ab7e3364
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pipe.c
dlls/kernel32/tests/pipe.c
+1
-1
virtual.c
dlls/kernel32/tests/virtual.c
+2
-2
No files found.
dlls/kernel32/tests/pipe.c
View file @
7596e3dd
...
...
@@ -848,7 +848,7 @@ static DWORD CALLBACK named_pipe_client_func(LPVOID p)
ret
=
GetTokenInformation
(
process_token
,
TokenPrivileges
,
NULL
,
0
,
&
Size
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"GetTokenInformation(TokenPrivileges) failed with %d
\n
"
,
GetLastError
());
Privileges
=
(
TOKEN_PRIVILEGES
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
Size
);
Privileges
=
HeapAlloc
(
GetProcessHeap
(),
0
,
Size
);
ret
=
GetTokenInformation
(
process_token
,
TokenPrivileges
,
Privileges
,
Size
,
&
Size
);
ok
(
ret
,
"GetTokenInformation(TokenPrivileges) failed with %d
\n
"
,
GetLastError
());
...
...
dlls/kernel32/tests/virtual.c
View file @
7596e3dd
...
...
@@ -81,8 +81,8 @@ static void test_VirtualAllocEx(void)
return
;
}
src
=
(
char
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
alloc_size
);
dst
=
(
char
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
alloc_size
);
src
=
HeapAlloc
(
GetProcessHeap
(),
0
,
alloc_size
);
dst
=
HeapAlloc
(
GetProcessHeap
(),
0
,
alloc_size
);
for
(
i
=
0
;
i
<
alloc_size
;
i
++
)
src
[
i
]
=
i
&
0xff
;
...
...
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