diff options
Diffstat (limited to 'inject/injectee.cpp')
-rw-r--r-- | inject/injectee.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/inject/injectee.cpp b/inject/injectee.cpp index 0814da24..e31df595 100644 --- a/inject/injectee.cpp +++ b/inject/injectee.cpp @@ -80,6 +80,22 @@ debugPrintf(const char *format, ...) } +EXTERN_C void +_assert(const char *_Message, const char *_File, unsigned _Line) +{ + debugPrintf("Assertion failed: %s, file %s, line %u\n", _Message, _File, _Line); + TerminateProcess(GetCurrentProcess(), 1); +} + + +EXTERN_C void +_wassert(const wchar_t * _Message, const wchar_t *_File, unsigned _Line) +{ + debugPrintf("Assertion failed: %S, file %S, line %u\n", _Message, _File, _Line); + TerminateProcess(GetCurrentProcess(), 1); +} + + static HMODULE WINAPI MyLoadLibraryA(LPCSTR lpLibFileName); |