dplayx: Avoid TRUE:FALSE conditional expressions.
This commit is contained in:
parent
3f35a11426
commit
66bd68a809
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue