MCPcopy Create free account
hub / github.com/crosire/reshade / QueryInterface

Method QueryInterface

source/d3d9/d3d9_resource.cpp:22–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22HRESULT STDMETHODCALLTYPE Direct3DDepthStencilSurface9::QueryInterface(REFIID riid, void **ppvObj)
23{
24 if (ppvObj == nullptr)
25 return E_POINTER;
26
27 if (riid == __uuidof(this) ||
28 riid == __uuidof(IUnknown) ||
29 riid == __uuidof(IDirect3DResource9) ||
30 riid == __uuidof(IDirect3DSurface9))
31 {
32 AddRef();
33 *ppvObj = this;
34 return S_OK;
35 }
36
37 return _orig->QueryInterface(riid, ppvObj);
38}
39ULONG STDMETHODCALLTYPE Direct3DDepthStencilSurface9::AddRef()
40{
41 if (_ref != 0)

Callers 1

GetDeviceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected