MCPcopy Create free account
hub / github.com/Nevcairiel/LAVFilters / NonDelegatingQueryInterface

Method NonDelegatingQueryInterface

common/baseclasses/combase.cpp:136–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134/* QueryInterface */
135
136STDMETHODIMP CUnknown::NonDelegatingQueryInterface(REFIID riid, __deref_out void **ppv)
137{
138 CheckPointer(ppv, E_POINTER);
139 ValidateReadWritePtr(ppv, sizeof(PVOID));
140
141 /* We know only about IUnknown */
142
143 if (riid == IID_IUnknown)
144 {
145 GetInterface((LPUNKNOWN)(PNDUNKNOWN)this, ppv);
146 return NOERROR;
147 }
148 else
149 {
150 *ppv = NULL;
151 return E_NOINTERFACE;
152 }
153}
154
155/* We have to ensure that we DON'T use a max macro, since these will typically */
156/* lead to one of the parameters being evaluated twice. Since we are worried */

Callers

nothing calls this directly

Calls 1

GetInterfaceFunction · 0.85

Tested by

no test coverage detected