1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-27 04:54:15 +01:00

[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

View File

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