mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Fix several gcc, cppcheck and clang warnings
This commit is contained in:
@@ -159,8 +159,16 @@ namespace BlackSimPlugin
|
||||
if (m_hostStatus == Terminated) return hr;
|
||||
|
||||
BlackMisc::CLogMessage(this).info("Hosting terminated!");
|
||||
hr = m_directPlayPeer->TerminateSession(nullptr, 0, 0);
|
||||
hr = m_directPlayPeer->Close(0);
|
||||
if (FAILED(hr = m_directPlayPeer->TerminateSession(nullptr, 0, 0)))
|
||||
{
|
||||
return printDirectPlayError(hr);
|
||||
}
|
||||
|
||||
if (FAILED(hr = m_directPlayPeer->Close(0)))
|
||||
{
|
||||
return printDirectPlayError(hr);
|
||||
}
|
||||
|
||||
m_hostStatus = Terminated;
|
||||
|
||||
emit statusChanged(m_hostStatus);
|
||||
|
||||
Reference in New Issue
Block a user