From 8f1ec328656c8fb792fce4a346c11141ab2cd9f9 Mon Sep 17 00:00:00 2001 From: Ting-Yu Lin Date: Sat, 6 Oct 2012 23:28:30 +0800 Subject: [PATCH] windows: fix application crashed popup in debug version --- test/runner-win.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/runner-win.c b/test/runner-win.c index cf75c703..111a6869 100644 --- a/test/runner-win.c +++ b/test/runner-win.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "task.h" #include "runner.h" @@ -43,6 +44,8 @@ void platform_init(int argc, char **argv) { /* Disable the "application crashed" popup. */ SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX); + _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG); + _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_DEBUG); _setmode(0, _O_BINARY); _setmode(1, _O_BINARY);