winfsp/ext/tlib/injected/stdfunc.c
2018-01-03 15:29:38 -08:00

30 lines
559 B
C

/**
* @file tlib/injected/stdfunc.c
*
* @copyright 2014-2018 Bill Zissimopoulos
*/
#include <tlib/injected/stdfunc.h>
#define TLIB_INJECTIONS_ENABLED
#include <tlib/injection.h>
#undef calloc
#undef malloc
#undef realloc
void *tlib_calloc(size_t count, size_t size)
{
TLIB_INJECT("calloc", return 0);
return calloc(count, size);
}
void *tlib_malloc(size_t size)
{
TLIB_INJECT("malloc", return 0);
return malloc(size);
}
void *tlib_realloc(void *ptr, size_t size)
{
TLIB_INJECT("realloc", return 0);
return realloc(ptr, size);
}