69 0, 0, { (
DWORD_PTR)(__FILE__
": IMalloc32_SpyCS") }
85 return NewSpyedBlocks !=
NULL;
185 if ((
cb != 0) && (preAllocResult == 0)) {
187 TRACE(
"returning null\n");
253 TRACE(
"--(%p)\n",pNewMemory);
352 did_alloc = IMallocSpy_PostDidAlloc(
Malloc32.
pSpy,
mem, spyed_block, did_alloc);
487 TRACE(
"%p\n", pMallocSpy);
495 else if (
SUCCEEDED(IMallocSpy_QueryInterface(pMallocSpy, &IID_IMallocSpy, (
void**)&pSpy))) {
static USHORT USHORT * NewLength
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define HeapFree(x, y, z)
BOOL WINAPI IsBadReadPtr(IN LPCVOID lp, IN UINT_PTR ucb)
BOOL NTAPI IsBadCodePtr(FARPROC lpfn)
GLenum const GLvoid * addr
HLOCAL NTAPI LocalReAlloc(HLOCAL hMem, SIZE_T dwBytes, UINT uFlags)
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
BOOL WINAPI HeapValidate(HANDLE hHeap, DWORD dwFlags, LPCVOID lpMem)
static BOOL AddMemoryLocation(LPVOID *pMem)
HRESULT WINAPI CoRevokeMallocSpy(void)
static ULONG WINAPI IMalloc_fnAddRefRelease(IMalloc *iface)
static INT WINAPI IMalloc_fnDidAlloc(IMalloc *iface, void *mem)
static void *WINAPI IMalloc_fnRealloc(IMalloc *iface, void *pv, SIZE_T cb)
static CRITICAL_SECTION_DEBUG critsect_debug
LPVOID WINAPI CoTaskMemRealloc(LPVOID pvOld, SIZE_T size)
static HRESULT WINAPI IMalloc_fnQueryInterface(IMalloc *iface, REFIID refiid, void **obj)
static void ** mallocspy_is_allocation_spyed(const void *mem)
BOOL WINAPI IsValidInterface(LPUNKNOWN punk)
static CRITICAL_SECTION IMalloc32_SpyCS
static _Malloc32 Malloc32
static void WINAPI IMalloc_fnHeapMinimize(IMalloc *iface)
VOID WINAPI CoTaskMemFree(LPVOID ptr)
static const IMallocVtbl VT_IMalloc32
HRESULT WINAPI CoRegisterMallocSpy(LPMALLOCSPY pMallocSpy)
HRESULT WINAPI CoGetMalloc(DWORD context, IMalloc **imalloc)
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
static void *WINAPI IMalloc_fnAlloc(IMalloc *iface, SIZE_T cb)
static SIZE_T WINAPI IMalloc_fnGetSize(IMalloc *iface, void *mem)
static BOOL RemoveMemoryLocation(LPCVOID pMem)
static void WINAPI IMalloc_fnFree(IMalloc *iface, void *pv)
static BOOL SetSpyedBlockTableLength(DWORD NewLength)
struct task_struct * current
static HMODULE MODULEINFO DWORD cb
interface IMallocSpy * LPMALLOCSPY
#define IsEqualIID(riid1, riid2)
LIST_ENTRY ProcessLocksList
DWORD SpyedBlockTableLength
DWORD SpyedAllocationsLeft
SIZE_T WINAPI HeapSize(HANDLE, DWORD, LPCVOID)
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)