Clarify return value from CDirectPlayPeer::directPlayMessageHandler

refs #800
This commit is contained in:
Roland Winklmeier
2016-11-17 11:01:51 +01:00
committed by Klaus Basan
parent bec57e8369
commit 0ce38cb7d6
2 changed files with 5 additions and 3 deletions

View File

@@ -48,8 +48,6 @@ namespace BlackSimPlugin
HRESULT CDirectPlayPeer::directPlayMessageHandler(DWORD messageId, void *msgBuffer)
{
HRESULT hr = S_OK;
switch (messageId)
{
case DPN_MSGID_CREATE_PLAYER:
@@ -162,7 +160,9 @@ namespace BlackSimPlugin
}
return hr;
// Directx9 SDK: Unless otherwise noted, this function should return S_OK.
// http://doc.51windows.net/Directx9_SDK/play/ref/callbacks/pfndpnmessagehandler.htm
return S_OK;
}
HRESULT CDirectPlayPeer::initDirectPlay()

View File

@@ -28,6 +28,8 @@ namespace BlackSimPlugin
namespace Fs9
{
//! DirectPlay peer implementation
//! More information can be found in the DirectX9 SDK documentation
//! http://doc.51windows.net/Directx9_SDK/?url=/Directx9_SDK/play/dplay.htm
class CDirectPlayPeer : public BlackMisc::CContinuousWorker
{
Q_OBJECT