test: Add _win32_seterrormode.fail.cpp to silence Exception diaalogs on Windows desktop.
This commit is contained in:
15
test/_win32_seterrormode.fail.cpp
Normal file
15
test/_win32_seterrormode.fail.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <windows.h>
|
||||
|
||||
namespace {
|
||||
|
||||
class Win32ctor {
|
||||
public:
|
||||
Win32ctor() {
|
||||
SetErrorMode(SEM_FAILCRITICALERRORS |
|
||||
SEM_NOGPFAULTERRORBOX |
|
||||
SEM_NOOPENFILEERRORBOX);
|
||||
}
|
||||
};
|
||||
|
||||
static Win32ctor ctor;
|
||||
}
|
||||
Reference in New Issue
Block a user