Minor SAL annotation simplification

This commit is contained in:
Chuck Walbourn 2022-01-06 16:51:16 -08:00
Родитель 90c098c9a5
Коммит 2fd9023461
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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);