atl: Implement AtlComQIPtrAssign.
This commit is contained in:
parent
35e99b50f1
commit
fec8156cc3
|
@ -23,7 +23,7 @@
|
|||
28 stdcall AtlPixelToHiMetric(ptr ptr)
|
||||
29 stub AtlDevModeW2A
|
||||
30 stdcall AtlComPtrAssign(ptr ptr)
|
||||
31 stub AtlComQIPtrAssign
|
||||
31 stdcall AtlComQIPtrAssign(ptr ptr ptr)
|
||||
32 stdcall AtlInternalQueryInterface(ptr ptr ptr ptr)
|
||||
34 stub AtlGetVersion
|
||||
35 stub AtlAxDialogBoxW
|
||||
|
|
|
@ -208,6 +208,18 @@ IUnknown* WINAPI AtlComPtrAssign(IUnknown** pp, IUnknown *p)
|
|||
return p;
|
||||
}
|
||||
|
||||
IUnknown* WINAPI AtlComQIPtrAssign(IUnknown** pp, IUnknown *p, REFIID riid)
|
||||
{
|
||||
IUnknown *new_p = NULL;
|
||||
|
||||
TRACE("(%p %p %s)\n", pp, p, debugstr_guid(riid));
|
||||
|
||||
if (p) IUnknown_QueryInterface(p, riid, (void **)&new_p);
|
||||
if (*pp) IUnknown_Release(*pp);
|
||||
*pp = new_p;
|
||||
return new_p;
|
||||
}
|
||||
|
||||
|
||||
HRESULT WINAPI AtlInternalQueryInterface(void* this, const _ATL_INTMAP_ENTRY* pEntries, REFIID iid, void** ppvObject)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue