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
66bd68a8
Commit
66bd68a8
authored
Aug 27, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dplayx: Avoid TRUE:FALSE conditional expressions.
parent
3f35a114
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
dplay.c
dlls/dplayx/dplay.c
+2
-2
dplobby.c
dlls/dplayx/dplobby.c
+2
-2
name_server.c
dlls/dplayx/name_server.c
+1
-1
No files found.
dlls/dplayx/dplay.c
View file @
66bd68a8
...
...
@@ -2853,11 +2853,11 @@ static HRESULT DP_SecureOpen
FIXME
(
"Not all data fields are correct. Need new parameter
\n
"
);
data
.
bCreate
=
(
dwFlags
&
DPOPEN_CREATE
)
?
TRUE
:
FALSE
;
data
.
bCreate
=
(
dwFlags
&
DPOPEN_CREATE
)
!=
0
;
data
.
lpSPMessageHeader
=
(
dwFlags
&
DPOPEN_CREATE
)
?
NULL
:
NS_GetNSAddr
(
This
->
dp2
->
lpNameServerData
);
data
.
lpISP
=
This
->
dp2
->
spData
.
lpISP
;
data
.
bReturnStatus
=
(
dwFlags
&
DPOPEN_RETURNSTATUS
)
?
TRUE
:
FALSE
;
data
.
bReturnStatus
=
(
dwFlags
&
DPOPEN_RETURNSTATUS
)
!=
0
;
data
.
dwOpenFlags
=
dwFlags
;
data
.
dwSessionFlags
=
This
->
dp2
->
lpSessionDesc
->
dwFlags
;
...
...
dlls/dplayx/dplobby.c
View file @
66bd68a8
...
...
@@ -1704,7 +1704,7 @@ static HRESULT WINAPI IDirectPlayLobby3WImpl_WaitForConnectionSettings
(
LPDIRECTPLAYLOBBY3
iface
,
DWORD
dwFlags
)
{
HRESULT
hr
=
DP_OK
;
BOOL
bStartWait
=
(
dwFlags
&
DPLWAIT_CANCEL
)
?
FALSE
:
TRUE
;
BOOL
bStartWait
=
!
(
dwFlags
&
DPLWAIT_CANCEL
)
;
TRACE
(
"(%p)->(0x%08x)
\n
"
,
iface
,
dwFlags
);
...
...
@@ -1721,7 +1721,7 @@ static HRESULT WINAPI IDirectPlayLobby3AImpl_WaitForConnectionSettings
(
LPDIRECTPLAYLOBBY3A
iface
,
DWORD
dwFlags
)
{
HRESULT
hr
=
DP_OK
;
BOOL
bStartWait
=
(
dwFlags
&
DPLWAIT_CANCEL
)
?
FALSE
:
TRUE
;
BOOL
bStartWait
=
!
(
dwFlags
&
DPLWAIT_CANCEL
)
;
TRACE
(
"(%p)->(0x%08x)
\n
"
,
iface
,
dwFlags
);
...
...
dlls/dplayx/name_server.c
View file @
66bd68a8
...
...
@@ -208,7 +208,7 @@ HRESULT NS_SendSessionRequestBroadcast( LPCGUID lpcGuid,
data
.
lpMessage
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
data
.
dwMessageSize
);
data
.
lpISP
=
lpSpData
->
lpISP
;
data
.
bReturnStatus
=
(
dwFlags
&
DPENUMSESSIONS_RETURNSTATUS
)
?
TRUE
:
FALSE
;
data
.
bReturnStatus
=
(
dwFlags
&
DPENUMSESSIONS_RETURNSTATUS
)
!=
0
;
lpMsg
=
(
LPDPMSG_ENUMSESSIONSREQUEST
)(((
BYTE
*
)
data
.
lpMessage
)
+
lpSpData
->
dwSPHeaderSize
);
...
...
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