refs #546, allows to run on Win10 without DirectX

Does not fix that it is asked to install DX, but avoids the crash if installation is denied
This commit is contained in:
Klaus Basan
2015-12-08 06:42:16 +01:00
parent ac44485ff8
commit 8058a19288
2 changed files with 3 additions and 2 deletions

View File

@@ -92,7 +92,8 @@ namespace BlackSimPlugin
{
HRESULT hr = S_OK;
if (m_hostStatus == Hosting) return hr;
if (m_hostStatus == Hosting) { return hr; }
if (!m_directPlayPeer) { return S_FALSE; }
DPN_APPLICATION_DESC dpAppDesc;
@@ -108,7 +109,6 @@ namespace BlackSimPlugin
ZeroMemory(&playerInfo, sizeof(PLAYER_INFO_STRUCT));
strcpy(playerInfo.szAircraft, "Boeing 737-400");
playerInfo.dwFlags = PLAYER_INFO_STRUCT::PARAMS_RECV | PLAYER_INFO_STRUCT::PARAMS_SEND;
// Prepare and set the player information structure.