90 ok(
SUCCEEDED(
hr),
"Expected CoRegisterMallocSpy to succeed, but it failed: 0x%lx\n",
hr);
101 ok(tmp.
m_pData ==
NULL,
"Expected m_pData to be transfered\n");
105#if defined(_MSC_VER) && !defined(__clang__)
116 ok(
SUCCEEDED(
hr),
"Expected CoRevokeMallocSpy to succeed, but it failed: 0x%lx\n",
hr);
static CHeapPtrListMallocSpy g_Spy
static LONG g_Reallocations
static LONG g_OpenAllocations
#define InterlockedIncrement
#define InterlockedDecrement
#define STDMETHODCALLTYPE
POSITION AddTail(INARGTYPE element)
CComHeapPtrList(_In_ UINT nBlockSize=10)
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
HRESULT WINAPI CoRevokeMallocSpy(void)
HRESULT WINAPI CoRegisterMallocSpy(LPMALLOCSPY pMallocSpy)
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
static void test_Alloc(void)
#define IsEqualGUID(rguid1, rguid2)
virtual LPVOID STDMETHODCALLTYPE PreDidAlloc(LPVOID pRequest, BOOL)
virtual SIZE_T STDMETHODCALLTYPE PostGetSize(SIZE_T cbActual, BOOL)
virtual ULONG STDMETHODCALLTYPE Release()
virtual void STDMETHODCALLTYPE PostHeapMinimize()
STDMETHODIMP QueryInterface(REFIID riid, void **ppvObject)
virtual ULONG STDMETHODCALLTYPE AddRef()
virtual SIZE_T STDMETHODCALLTYPE PreRealloc(LPVOID pRequest, SIZE_T cbRequest, LPVOID *ppNewRequest, BOOL)
virtual void STDMETHODCALLTYPE PostFree(BOOL fSpyed)
virtual LPVOID STDMETHODCALLTYPE PostRealloc(LPVOID pActual, BOOL fSpyed)
virtual LPVOID STDMETHODCALLTYPE PostAlloc(LPVOID pActual)
virtual SIZE_T STDMETHODCALLTYPE PreAlloc(SIZE_T cbRequest)
virtual LPVOID STDMETHODCALLTYPE PreFree(LPVOID pRequest, BOOL)
virtual void STDMETHODCALLTYPE PreHeapMinimize()
virtual int STDMETHODCALLTYPE PostDidAlloc(LPVOID, BOOL, int fActual)
virtual LPVOID STDMETHODCALLTYPE PreGetSize(LPVOID pRequest, BOOL)
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject