From 1b7819dcd57c35500ad5c6ddca912e2e3ba32349 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Mon, 19 Aug 2013 06:33:35 -0600 Subject: [PATCH] Windows: disable message box from system errors For example, disable a message box for DLL links errors. --- racket/src/racket/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/racket/src/racket/main.c b/racket/src/racket/main.c index b41c0e22f8..d20cc41ed1 100644 --- a/racket/src/racket/main.c +++ b/racket/src/racket/main.c @@ -303,6 +303,8 @@ static __declspec(thread) void *tls_space; #ifdef DOS_FILE_SYSTEM void load_delayed() { + (void)SetErrorMode(SEM_FAILCRITICALERRORS); + /* Order matters: load dependencies first */ # ifndef MZ_PRECISE_GC load_delayed_dll(NULL, "libmzgcxxxxxxx.dll");