1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 19:24:10 +01:00

[dxgi] Fix CheckInterfaceSupport UMD version writeback

Fixes a wine test failure.
This commit is contained in:
Philip Rebohle 2019-10-01 21:49:31 +02:00
parent cd82669a85
commit 1e00f8046c
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -115,8 +115,8 @@ namespace dxvk {
// We can't really reconstruct the version numbers
// returned by Windows drivers from Vulkan data
if (pUMDVersion)
pUMDVersion->QuadPart = SUCCEEDED(hr) ? ~0ull : 0ull;
if (SUCCEEDED(hr) && pUMDVersion)
pUMDVersion->QuadPart = ~0ull;
if (FAILED(hr)) {
Logger::err("DXGI: CheckInterfaceSupport: Unsupported interface");