mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +08:00
Clarify return value from CDirectPlayPeer::directPlayMessageHandler
refs #800
This commit is contained in:
committed by
Klaus Basan
parent
bec57e8369
commit
0ce38cb7d6
@@ -48,8 +48,6 @@ namespace BlackSimPlugin
|
|||||||
|
|
||||||
HRESULT CDirectPlayPeer::directPlayMessageHandler(DWORD messageId, void *msgBuffer)
|
HRESULT CDirectPlayPeer::directPlayMessageHandler(DWORD messageId, void *msgBuffer)
|
||||||
{
|
{
|
||||||
HRESULT hr = S_OK;
|
|
||||||
|
|
||||||
switch (messageId)
|
switch (messageId)
|
||||||
{
|
{
|
||||||
case DPN_MSGID_CREATE_PLAYER:
|
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()
|
HRESULT CDirectPlayPeer::initDirectPlay()
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ namespace BlackSimPlugin
|
|||||||
namespace Fs9
|
namespace Fs9
|
||||||
{
|
{
|
||||||
//! DirectPlay peer implementation
|
//! 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
|
class CDirectPlayPeer : public BlackMisc::CContinuousWorker
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|||||||
Reference in New Issue
Block a user