=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: d3d11: AddRef device returned from d3d11_buffer_GetDevice().

Alexandre Julliard julliard at wine.codeweavers.com
Mon Sep 7 09:20:14 CDT 2015


Module: wine
Branch: master
Commit: ae2b1539a9676a85baf97216c73a19d2b8b69954
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ae2b1539a9676a85baf97216c73a19d2b8b69954

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Sun Sep  6 16:45:49 2015 +0200

d3d11: AddRef device returned from d3d11_buffer_GetDevice().

---

 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,




More information about the wine-cvs mailing list