From 6d7e0518cf4521993ceb8be40308a6c04e566b2a Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 7 Oct 2018 05:21:20 +0000 Subject: [PATCH] Add debug_break() to the top of handle_memerr() git-svn-id: https://svn.eduke32.com/eduke32@7015 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/compat.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/build/src/compat.cpp b/source/build/src/compat.cpp index dfc28d140..9ca07bb1f 100644 --- a/source/build/src/compat.cpp +++ b/source/build/src/compat.cpp @@ -4,6 +4,7 @@ #define LIBDIVIDE_BODY #include "compat.h" +#include "debugbreak.h" #ifdef _WIN32 # define NEED_SHLOBJ_H @@ -49,6 +50,8 @@ void xalloc_set_location(int32_t line, const char *file, const char *func) void handle_memerr(void) { + debug_break(); + if (g_MemErrHandler) { #ifdef DEBUGGINGAIDS