[dxgi] Return DXGI_ERROR_INVALID_CALL for invalid IDXGIAdapter3::RegisterVideoMemoryBudgetChangeNotificationEvent() parameters

According to wine tests 14237e321b

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
This commit is contained in:
Zhiyi Zhang 2022-05-17 22:51:01 +08:00 committed by Philip Rebohle
parent 51e56c0420
commit 8147844aef
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ namespace dxvk {
HANDLE hEvent,
DWORD* pdwCookie) {
if (!hEvent || !pdwCookie)
return E_INVALIDARG;
return DXGI_ERROR_INVALID_CALL;
std::unique_lock<dxvk::mutex> lock(m_mutex);
DWORD cookie = ++m_eventCookie;