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
f640ba23
Commit
f640ba23
authored
Nov 05, 2011
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dplayx: Remove extraneous braces from switch statement.
parent
2d60d914
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
dplay.c
dlls/dplayx/dplay.c
+0
-18
No files found.
dlls/dplayx/dplay.c
View file @
f640ba23
...
@@ -648,23 +648,18 @@ HRESULT DP_HandleMessage( IDirectPlay2Impl* This, LPCVOID lpcMessageBody,
...
@@ -648,23 +648,18 @@ HRESULT DP_HandleMessage( IDirectPlay2Impl* This, LPCVOID lpcMessageBody,
{
{
/* Name server needs to handle this request */
/* Name server needs to handle this request */
case
DPMSGCMD_ENUMSESSIONSREQUEST
:
case
DPMSGCMD_ENUMSESSIONSREQUEST
:
{
/* Reply expected */
/* Reply expected */
NS_ReplyToEnumSessionsRequest
(
lpcMessageBody
,
lplpReply
,
lpdwMsgSize
,
This
);
NS_ReplyToEnumSessionsRequest
(
lpcMessageBody
,
lplpReply
,
lpdwMsgSize
,
This
);
break
;
break
;
}
/* Name server needs to handle this request */
/* Name server needs to handle this request */
case
DPMSGCMD_ENUMSESSIONSREPLY
:
case
DPMSGCMD_ENUMSESSIONSREPLY
:
{
/* No reply expected */
/* No reply expected */
NS_AddRemoteComputerAsNameServer
(
lpcMessageHeader
,
NS_AddRemoteComputerAsNameServer
(
lpcMessageHeader
,
This
->
dp2
->
spData
.
dwSPHeaderSize
,
This
->
dp2
->
spData
.
dwSPHeaderSize
,
lpcMessageBody
,
lpcMessageBody
,
This
->
dp2
->
lpNameServerData
);
This
->
dp2
->
lpNameServerData
);
break
;
break
;
}
case
DPMSGCMD_REQUESTNEWPLAYERID
:
case
DPMSGCMD_REQUESTNEWPLAYERID
:
{
{
...
@@ -691,34 +686,26 @@ HRESULT DP_HandleMessage( IDirectPlay2Impl* This, LPCVOID lpcMessageBody,
...
@@ -691,34 +686,26 @@ HRESULT DP_HandleMessage( IDirectPlay2Impl* This, LPCVOID lpcMessageBody,
TRACE
(
"Allocating new playerid 0x%08x from remote request
\n
"
,
TRACE
(
"Allocating new playerid 0x%08x from remote request
\n
"
,
lpReply
->
dpidNewPlayerId
);
lpReply
->
dpidNewPlayerId
);
break
;
break
;
}
}
case
DPMSGCMD_GETNAMETABLEREPLY
:
case
DPMSGCMD_GETNAMETABLEREPLY
:
case
DPMSGCMD_NEWPLAYERIDREPLY
:
case
DPMSGCMD_NEWPLAYERIDREPLY
:
{
#if 0
#if 0
if( wCommandId == DPMSGCMD_NEWPLAYERIDREPLY )
if( wCommandId == DPMSGCMD_NEWPLAYERIDREPLY )
DebugBreak();
DebugBreak();
#endif
#endif
DP_MSG_ReplyReceived
(
This
,
wCommandId
,
lpcMessageBody
,
dwMessageBodySize
);
DP_MSG_ReplyReceived
(
This
,
wCommandId
,
lpcMessageBody
,
dwMessageBodySize
);
break
;
break
;
}
#if 1
#if 1
case
DPMSGCMD_JUSTENVELOPE
:
case
DPMSGCMD_JUSTENVELOPE
:
{
TRACE
(
"GOT THE SELF MESSAGE: %p -> 0x%08x
\n
"
,
lpcMessageHeader
,
((
const
DWORD
*
)
lpcMessageHeader
)[
1
]
);
TRACE
(
"GOT THE SELF MESSAGE: %p -> 0x%08x
\n
"
,
lpcMessageHeader
,
((
const
DWORD
*
)
lpcMessageHeader
)[
1
]
);
NS_SetLocalAddr
(
This
->
dp2
->
lpNameServerData
,
lpcMessageHeader
,
20
);
NS_SetLocalAddr
(
This
->
dp2
->
lpNameServerData
,
lpcMessageHeader
,
20
);
DP_MSG_ReplyReceived
(
This
,
wCommandId
,
lpcMessageBody
,
dwMessageBodySize
);
DP_MSG_ReplyReceived
(
This
,
wCommandId
,
lpcMessageBody
,
dwMessageBodySize
);
}
#endif
#endif
case
DPMSGCMD_FORWARDADDPLAYER
:
case
DPMSGCMD_FORWARDADDPLAYER
:
{
#if 0
#if 0
DebugBreak();
DebugBreak();
#endif
#endif
...
@@ -727,21 +714,16 @@ HRESULT DP_HandleMessage( IDirectPlay2Impl* This, LPCVOID lpcMessageBody,
...
@@ -727,21 +714,16 @@ HRESULT DP_HandleMessage( IDirectPlay2Impl* This, LPCVOID lpcMessageBody,
DP_MSG_ToSelf
(
This
,
1
);
/* This is a hack right now */
DP_MSG_ToSelf
(
This
,
1
);
/* This is a hack right now */
#endif
#endif
break
;
break
;
}
case
DPMSGCMD_FORWARDADDPLAYERNACK
:
case
DPMSGCMD_FORWARDADDPLAYERNACK
:
{
DP_MSG_ErrorReceived
(
This
,
wCommandId
,
lpcMessageBody
,
dwMessageBodySize
);
DP_MSG_ErrorReceived
(
This
,
wCommandId
,
lpcMessageBody
,
dwMessageBodySize
);
break
;
break
;
}
default
:
default
:
{
FIXME
(
"Unknown wCommandId %u. Ignoring message
\n
"
,
wCommandId
);
FIXME
(
"Unknown wCommandId %u. Ignoring message
\n
"
,
wCommandId
);
DebugBreak
();
DebugBreak
();
break
;
break
;
}
}
}
/* FIXME: There is code in dplaysp.c to handle dplay commands. Move to here. */
/* FIXME: There is code in dplaysp.c to handle dplay commands. Move to here. */
...
...
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