diff --git a/src/plugins/simulator/fs9/fs9host.cpp b/src/plugins/simulator/fs9/fs9host.cpp index 907e33e34..c6ec77cad 100644 --- a/src/plugins/simulator/fs9/fs9host.cpp +++ b/src/plugins/simulator/fs9/fs9host.cpp @@ -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. diff --git a/src/plugins/simulator/fs9/lobbyclient.cpp b/src/plugins/simulator/fs9/lobbyclient.cpp index 52de59002..33fb10fe7 100644 --- a/src/plugins/simulator/fs9/lobbyclient.cpp +++ b/src/plugins/simulator/fs9/lobbyclient.cpp @@ -89,6 +89,7 @@ namespace BlackSimPlugin bool CLobbyClient::canLobbyConnect() { + if (!m_dpLobbyClient) { return false; } GUID appGuid = CFs9Sdk::guid(); DWORD dwSize = 0; DWORD dwItems = 0;