diff options
| author | Ryderadzeee <craftercrashonname@gmail.com> | 2026-11-22 22:34:58 +0400 |
|---|---|---|
| committer | Ryderadzeee <craftercrashonname@gmail.com> | 2026-11-22 22:34:58 +0400 |
| commit | 4f4cc860ad4d13322bb2b2670464a237dd357a42 (patch) | |
| tree | 833b29e6b9821aa67ffc761d6ca36de45ddb75f1 /runtime/shims/dxgi_com.cpp | |
| parent | ec8ec4c9a46c6623f1a9c125afd3566da97f1e0c (diff) | |
Match DXGI on an out-of-range GetBuffer index
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 47a53f7a2..5c1752c05 100644 --- a/runtime/shims/dxgi_com.cpp +++ b/runtime/shims/dxgi_com.cpp | |||
| @@ -202,7 +202,7 @@ public: | |||
| 202 | HRESULT STDMETHODCALLTYPE GetBuffer(UINT buffer, REFIID riid, void** surface) override { | 202 | HRESULT STDMETHODCALLTYPE GetBuffer(UINT buffer, REFIID riid, void** surface) override { |
| 203 | if (!surface) return E_POINTER; | 203 | if (!surface) return E_POINTER; |
| 204 | *surface = nullptr; | 204 | *surface = nullptr; |
| 205 | if (buffer >= buffers_.size()) return E_INVALIDARG; | 205 | if (buffer >= buffers_.size()) return DXGI_ERROR_INVALID_CALL; |
| 206 | return buffers_[buffer]->QueryInterface(riid, surface); | 206 | return buffers_[buffer]->QueryInterface(riid, surface); |
| 207 | } | 207 | } |
| 208 | 208 | ||