mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[dxgi] Fix some IDXGIAdapter return codes
Fixes various wine test failures.
This commit is contained in:
parent
d90d450618
commit
73b9846c4f
@ -133,7 +133,7 @@ namespace dxvk {
|
||||
InitReturnPtr(ppOutput);
|
||||
|
||||
if (ppOutput == nullptr)
|
||||
return DXGI_ERROR_INVALID_CALL;
|
||||
return E_INVALIDARG;
|
||||
|
||||
if (Output > 0) {
|
||||
*ppOutput = nullptr;
|
||||
@ -149,7 +149,7 @@ namespace dxvk {
|
||||
|
||||
HRESULT STDMETHODCALLTYPE DxgiAdapter::GetDesc(DXGI_ADAPTER_DESC* pDesc) {
|
||||
if (pDesc == nullptr)
|
||||
return DXGI_ERROR_INVALID_CALL;
|
||||
return E_INVALIDARG;
|
||||
|
||||
DXGI_ADAPTER_DESC2 desc;
|
||||
HRESULT hr = GetDesc2(&desc);
|
||||
@ -173,7 +173,7 @@ namespace dxvk {
|
||||
|
||||
HRESULT STDMETHODCALLTYPE DxgiAdapter::GetDesc1(DXGI_ADAPTER_DESC1* pDesc) {
|
||||
if (pDesc == nullptr)
|
||||
return DXGI_ERROR_INVALID_CALL;
|
||||
return E_INVALIDARG;
|
||||
|
||||
DXGI_ADAPTER_DESC2 desc;
|
||||
HRESULT hr = GetDesc2(&desc);
|
||||
@ -198,7 +198,7 @@ namespace dxvk {
|
||||
|
||||
HRESULT STDMETHODCALLTYPE DxgiAdapter::GetDesc2(DXGI_ADAPTER_DESC2* pDesc) {
|
||||
if (pDesc == nullptr)
|
||||
return DXGI_ERROR_INVALID_CALL;
|
||||
return E_INVALIDARG;
|
||||
|
||||
const DxgiOptions* options = m_factory->GetOptions();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user