# HG changeset patch # User unknown # Date 2010-05-04 15:56:59 # Node ID d5c4e1d8daa2bcb74627155aabd9909ecca01d3b # Parent db5312fad5113e229fe940c84b7d5f2e82b976fe updated box for windows to prevent error modal dialog diff --git a/std-script/box-win/execute.cpp b/std-script/box-win/execute.cpp --- a/std-script/box-win/execute.cpp +++ b/std-script/box-win/execute.cpp @@ -301,6 +301,9 @@ STARTUPINFO si; PROCESS_INFORMATION pi; int ifsuccess = EXE_RESULT_OK; + + SetErrorMode(SEM_FAILCRITICALERRORS); + SetErrorMode(SEM_NOGPFAULTERRORBOX); ZeroMemory(&si, sizeof(si)); si.cb = sizeof(si);