Fixes crash for Metal Gear Solid V: Ground Zeroes.
Signed-off-by: Andrey Gusev andrey.goosev@gmail.com --- dlls/dxgi/swapchain.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/dxgi/swapchain.c b/dlls/dxgi/swapchain.c index 5b3ca5b5762..20e6fe3384a 100644 --- a/dlls/dxgi/swapchain.c +++ b/dlls/dxgi/swapchain.c @@ -601,7 +601,10 @@ static HRESULT STDMETHODCALLTYPE d3d11_swapchain_GetLastPresentCount(IDXGISwapCh { FIXME("iface %p, last_present_count %p stub!\n", iface, last_present_count);
- return E_NOTIMPL; + if (last_present_count) + *last_present_count = 0; + + return S_OK; }
/* IDXGISwapChain1 methods */