diff options
Diffstat (limited to 'runtime/shims/dxgi_com.cpp')
| -rw-r--r-- | runtime/shims/dxgi_com.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/shims/dxgi_com.cpp b/runtime/shims/dxgi_com.cpp index 2f671d78e..6c20e1504 100644 --- a/runtime/shims/dxgi_com.cpp +++ b/runtime/shims/dxgi_com.cpp | |||
| @@ -211,7 +211,7 @@ public: | |||
| 211 | HRESULT STDMETHODCALLTYPE GetBuffer(UINT buffer, REFIID riid, void** surface) override { | 211 | HRESULT STDMETHODCALLTYPE GetBuffer(UINT buffer, REFIID riid, void** surface) override { |
| 212 | if (!surface) return E_POINTER; | 212 | if (!surface) return E_POINTER; |
| 213 | *surface = nullptr; | 213 | *surface = nullptr; |
| 214 | if (buffer >= buffers_.size()) return E_INVALIDARG; | 214 | if (buffer >= buffers_.size()) return DXGI_ERROR_INVALID_CALL; |
| 215 | return buffers_[buffer]->QueryInterface(riid, surface); | 215 | return buffers_[buffer]->QueryInterface(riid, surface); |
| 216 | } | 216 | } |
| 217 | 217 | ||