Minor SAL annotation simplification
This commit is contained in:
Родитель
90c098c9a5
Коммит
2fd9023461
|
@ -285,7 +285,7 @@ namespace DirectX
|
|||
|
||||
#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_GAMES)
|
||||
// Underlying device access
|
||||
_Success_(return != false)
|
||||
_Success_(return)
|
||||
bool __cdecl GetDevice(int player, _Outptr_ IGameInputDevice** device) noexcept;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -288,7 +288,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
_Success_(return != false)
|
||||
_Success_(return)
|
||||
bool GetDevice(int player, _Outptr_ IGameInputDevice** device) noexcept
|
||||
{
|
||||
if (!device)
|
||||
|
@ -1649,7 +1649,7 @@ void GamePad::RegisterEvents(HANDLE ctrlChanged) noexcept
|
|||
pImpl->mCtrlChanged = (!ctrlChanged) ? INVALID_HANDLE_VALUE : ctrlChanged;
|
||||
}
|
||||
|
||||
_Success_(return != false)
|
||||
_Success_(return)
|
||||
bool GamePad::GetDevice(int player, _Outptr_ IGameInputDevice** device) noexcept
|
||||
{
|
||||
return pImpl->GetDevice(player, device);
|
||||
|
|
Загрузка…
Ссылка в новой задаче