Skip to content

Commit

Permalink
call SetErrorMode() to shutup OS error dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
nu774 committed Feb 3, 2015
1 parent 1116f97 commit e21524c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1602,6 +1602,7 @@ int wmain1(int argc, wchar_t **argv)
#endif
Options opts;

SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
SetDllDirectoryW(L"");
std::setlocale(LC_CTYPE, "");
std::setbuf(stderr, 0);
Expand Down

0 comments on commit e21524c

Please sign in to comment.