mirror of
https://github.com/solemnwarning/directplay-lite
synced 2024-12-30 16:45:37 +01:00
Allow calling IDirectPlay8Peer::SendTo() during connection.
DirectX allows this.
This commit is contained in:
parent
685a6c27cf
commit
f3a3533660
@ -574,10 +574,12 @@ HRESULT DirectPlay8Peer::SendTo(CONST DPNID dpnid, CONST DPN_BUFFER_DESC* CONST
|
||||
case STATE_NEW: return DPNERR_UNINITIALIZED;
|
||||
case STATE_INITIALISED: return DPNERR_NOTREADY;
|
||||
case STATE_HOSTING: break;
|
||||
case STATE_CONNECTING_TO_HOST: return DPNERR_NOTREADY;
|
||||
case STATE_CONNECTING_TO_PEERS: return DPNERR_NOTREADY;
|
||||
case STATE_CONNECT_FAILED: return DPNERR_NOTREADY;
|
||||
case STATE_CONNECTING_TO_HOST: break;
|
||||
case STATE_CONNECTING_TO_PEERS: break;
|
||||
case STATE_CONNECT_FAILED: return DPNERR_NOCONNECTION;
|
||||
case STATE_CONNECTED: break;
|
||||
case STATE_CLOSING: return DPNERR_NOCONNECTION;
|
||||
case STATE_TERMINATED: return DPNERR_NOCONNECTION;
|
||||
}
|
||||
|
||||
if(dwFlags & DPNSEND_COMPLETEONPROCESS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user