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
ded7d0bc
Commit
ded7d0bc
authored
Sep 10, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dplayx: Cast-qual warnings fix.
parent
ba645eaa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
dplay.c
dlls/dplayx/dplay.c
+2
-2
name_server.c
dlls/dplayx/name_server.c
+9
-10
name_server.h
dlls/dplayx/name_server.h
+1
-1
No files found.
dlls/dplayx/dplay.c
View file @
ded7d0bc
...
...
@@ -691,7 +691,7 @@ HRESULT DP_HandleMessage( IDirectPlay2Impl* This, LPCVOID lpcMessageBody,
/* No reply expected */
NS_AddRemoteComputerAsNameServer
(
lpcMessageHeader
,
This
->
dp2
->
spData
.
dwSPHeaderSize
,
(
LPDPMSG_ENUMSESSIONSREPLY
)
lpcMessageBody
,
lpcMessageBody
,
This
->
dp2
->
lpNameServerData
);
break
;
}
...
...
@@ -742,7 +742,7 @@ HRESULT DP_HandleMessage( IDirectPlay2Impl* This, LPCVOID lpcMessageBody,
#if 1
case
DPMSGCMD_JUSTENVELOPE
:
{
TRACE
(
"GOT THE SELF MESSAGE: %p -> 0x%08lx
\n
"
,
lpcMessageHeader
,
((
LPDWORD
)
lpcMessageHeader
)[
1
]
);
TRACE
(
"GOT THE SELF MESSAGE: %p -> 0x%08lx
\n
"
,
lpcMessageHeader
,
((
const
DWORD
*
)
lpcMessageHeader
)[
1
]
);
NS_SetLocalAddr
(
This
->
dp2
->
lpNameServerData
,
lpcMessageHeader
,
20
);
DP_MSG_ReplyReceived
(
This
,
wCommandId
,
lpcMessageBody
,
dwMessageBodySize
);
}
...
...
dlls/dplayx/name_server.c
View file @
ded7d0bc
...
...
@@ -96,21 +96,20 @@ static DPQ_DECL_COMPARECB( cbUglyPig, GUID )
}
/* Store the given NS remote address for future reference */
/* FIXME: LPDPMSG_ENUMSESSIONSREPLY should be const */
void
NS_AddRemoteComputerAsNameServer
(
LPCVOID
lpcNSAddrHdr
,
DWORD
dwHdrSize
,
LPDPMSG_ENUMSESSIONSREPLY
lpMsg
,
LPVOID
lpNSInfo
)
void
NS_AddRemoteComputerAsNameServer
(
LPCVOID
lpcNSAddrHdr
,
DWORD
dwHdrSize
,
LPCDPMSG_ENUMSESSIONSREPLY
lpcMsg
,
LPVOID
lpNSInfo
)
{
DWORD
len
;
lpNSCache
lpCache
=
(
lpNSCache
)
lpNSInfo
;
lpNSCacheData
lpCacheNode
;
TRACE
(
"%p, %p, %p
\n
"
,
lpcNSAddrHdr
,
lpMsg
,
lpNSInfo
);
TRACE
(
"%p, %p, %p
\n
"
,
lpcNSAddrHdr
,
lp
c
Msg
,
lpNSInfo
);
/* See if we can find this session. If we can, remove it as it's a dup */
DPQ_REMOVE_ENTRY_CB
(
lpCache
->
first
,
next
,
data
->
guidInstance
,
cbUglyPig
,
lpMsg
->
sd
.
guidInstance
,
lpCacheNode
);
lp
c
Msg
->
sd
.
guidInstance
,
lpCacheNode
);
if
(
lpCacheNode
!=
NULL
)
{
...
...
@@ -140,11 +139,11 @@ void NS_AddRemoteComputerAsNameServer( LPCVOID lpcNSAddrHdr,
return
;
}
CopyMemory
(
lpCacheNode
->
data
,
&
lpMsg
->
sd
,
sizeof
(
*
lpCacheNode
->
data
)
);
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
(
LP
WSTR
)(
lp
Msg
+
1
),
-
1
,
NULL
,
0
,
NULL
,
NULL
);
CopyMemory
(
lpCacheNode
->
data
,
&
lp
c
Msg
->
sd
,
sizeof
(
*
lpCacheNode
->
data
)
);
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
(
LP
CWSTR
)(
lpc
Msg
+
1
),
-
1
,
NULL
,
0
,
NULL
,
NULL
);
if
((
lpCacheNode
->
data
->
u1
.
lpszSessionNameA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
)))
{
WideCharToMultiByte
(
CP_ACP
,
0
,
(
LP
WSTR
)(
lp
Msg
+
1
),
-
1
,
WideCharToMultiByte
(
CP_ACP
,
0
,
(
LP
CWSTR
)(
lpc
Msg
+
1
),
-
1
,
lpCacheNode
->
data
->
u1
.
lpszSessionNameA
,
len
,
NULL
,
NULL
);
}
...
...
dlls/dplayx/name_server.h
View file @
ded7d0bc
...
...
@@ -32,7 +32,7 @@ void NS_SetLocalComputerAsNameServer( LPCDPSESSIONDESC2 lpsd, LPVOID lpNSInfo );
void
NS_SetRemoteComputerAsNameServer
(
LPCDPSESSIONDESC2
lpsd
,
LPVOID
lpNSInfo
);
void
NS_AddRemoteComputerAsNameServer
(
LPCVOID
lpNSAddrHdr
,
DWORD
dwHdrSize
,
LP
DPMSG_ENUMSESSIONSREPLY
lp
Msg
,
LP
CDPMSG_ENUMSESSIONSREPLY
lpc
Msg
,
LPVOID
lpNSInfo
);
LPVOID
NS_GetNSAddr
(
LPVOID
lpNSInfo
);
DWORD
NS_GetNsMagic
(
LPVOID
lpNSInfo
);
...
...
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