1
0
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:
Daniel Collins 2018-10-31 23:16:12 +00:00
parent 685a6c27cf
commit f3a3533660

View File

@ -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)