[PATCH 4/6] d3d11: AddRef device returned from d3d11_buffer_GetDevice().
Józef Kucia
jkucia at codeweavers.com
Sun Sep 6 09:45:49 CDT 2015
---
dlls/d3d11/buffer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/d3d11/buffer.c b/dlls/d3d11/buffer.c
index 0245b52..26123e8 100644
--- a/dlls/d3d11/buffer.c
+++ b/dlls/d3d11/buffer.c
@@ -109,6 +109,7 @@ static void STDMETHODCALLTYPE d3d11_buffer_GetDevice(ID3D11Buffer *iface, ID3D11
TRACE("iface %p, device %p.\n", iface, device);
*device = buffer->device;
+ ID3D11Device_AddRef(*device);
}
static HRESULT STDMETHODCALLTYPE d3d11_buffer_GetPrivateData(ID3D11Buffer *iface,
--
2.4.6
More information about the wine-patches
mailing list