[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
1 changed files with 2 additions and 2 deletions

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