mirror of
https://github.com/solemnwarning/directplay-lite
synced 2024-12-30 16:45:37 +01:00
Don't crash if IDirectPlay8Peer::Host() is passed a NULL session name.
This commit is contained in:
parent
d9c78f14bf
commit
b04735e8ea
@ -877,7 +877,7 @@ HRESULT DirectPlay8Peer::Host(CONST DPN_APPLICATION_DESC* CONST pdnAppDesc, IDir
|
||||
|
||||
application_guid = pdnAppDesc->guidApplication;
|
||||
max_players = pdnAppDesc->dwMaxPlayers;
|
||||
session_name = pdnAppDesc->pwszSessionName;
|
||||
session_name = (pdnAppDesc->pwszSessionName != NULL ? pdnAppDesc->pwszSessionName : L"(null)");
|
||||
|
||||
if(pdnAppDesc->dwFlags & DPNSESSION_REQUIREPASSWORD)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user