From ddd8d012e8eadde903568805f2471347b66affff Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 18 Nov 2009 22:30:42 +0000 Subject: [PATCH] SetErrorMode(0) --- dtool/src/test_interrogate/test_interrogate.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dtool/src/test_interrogate/test_interrogate.cxx b/dtool/src/test_interrogate/test_interrogate.cxx index bcf2803a37..2fbdcd6a9e 100644 --- a/dtool/src/test_interrogate/test_interrogate.cxx +++ b/dtool/src/test_interrogate/test_interrogate.cxx @@ -585,6 +585,12 @@ main(int argc, char *argv[]) { // Otherwise, assume it's a shared library, and try to load it. Filename pathname = Filename::dso_filename(argv[i]); cerr << "Loading " << pathname << "\n"; + +#ifdef WIN32 + // test_interrogate always wants to show an error dialog. + SetErrorMode(0); +#endif + void *dl = load_dso(DSearchPath(), pathname); if (dl == NULL) { cerr << "Unable to load: " << load_dso_error() << "\n";