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
56f57693
Commit
56f57693
authored
Jan 27, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Remove superfluous pointer casts.
parent
2c5da7de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
localmon.c
dlls/localspl/localmon.c
+4
-4
localmon.c
dlls/localspl/tests/localmon.c
+1
-1
No files found.
dlls/localspl/localmon.c
View file @
56f57693
...
...
@@ -427,7 +427,7 @@ static BOOL WINAPI localmon_AddPortExW(LPWSTR pName, DWORD level, LPBYTE pBuffer
*/
static
BOOL
WINAPI
localmon_ClosePort
(
HANDLE
hPort
)
{
port_t
*
port
=
(
port_t
*
)
hPort
;
port_t
*
port
=
hPort
;
TRACE
(
"(%p)
\n
"
,
port
);
EnterCriticalSection
(
&
port_handles_cs
);
...
...
@@ -531,7 +531,7 @@ static BOOL WINAPI localmon_OpenPortW(LPWSTR pName, PHANDLE phPort)
port
->
type
=
type
;
memcpy
(
port
->
nameW
,
pName
,
len
);
*
phPort
=
(
HANDLE
)
port
;
*
phPort
=
port
;
EnterCriticalSection
(
&
port_handles_cs
);
list_add_tail
(
&
port_handles
,
&
port
->
entry
);
...
...
@@ -556,7 +556,7 @@ static BOOL WINAPI localmon_OpenPortW(LPWSTR pName, PHANDLE phPort)
*/
static
BOOL
WINAPI
localmon_XcvClosePort
(
HANDLE
hXcv
)
{
xcv_t
*
xcv
=
(
xcv_t
*
)
hXcv
;
xcv_t
*
xcv
=
hXcv
;
TRACE
(
"(%p)
\n
"
,
xcv
);
/* No checks are done in Windows */
...
...
@@ -744,7 +744,7 @@ static BOOL WINAPI localmon_XcvOpenPort(LPCWSTR pName, ACCESS_MASK GrantedAccess
if
(
xcv
)
{
xcv
->
GrantedAccess
=
GrantedAccess
;
memcpy
(
xcv
->
nameW
,
pName
,
len
);
*
phXcv
=
(
HANDLE
)
xcv
;
*
phXcv
=
xcv
;
EnterCriticalSection
(
&
xcv_handles_cs
);
list_add_tail
(
&
xcv_handles
,
&
xcv
->
entry
);
LeaveCriticalSection
(
&
xcv_handles_cs
);
...
...
dlls/localspl/tests/localmon.c
View file @
56f57693
...
...
@@ -1347,7 +1347,7 @@ static void test_XcvOpenPort(void)
#define GET_MONITOR_FUNC(name) \
if(numentries > 0) { \
numentries--; \
p##name =
(void *)
pm->Monitor.pfn##name ; \
p##name = pm->Monitor.pfn##name ; \
}
...
...
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