mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
SetErrorMode(0)
This commit is contained in:
parent
c172d80a41
commit
ddd8d012e8
@ -585,6 +585,12 @@ main(int argc, char *argv[]) {
|
|||||||
// Otherwise, assume it's a shared library, and try to load it.
|
// Otherwise, assume it's a shared library, and try to load it.
|
||||||
Filename pathname = Filename::dso_filename(argv[i]);
|
Filename pathname = Filename::dso_filename(argv[i]);
|
||||||
cerr << "Loading " << pathname << "\n";
|
cerr << "Loading " << pathname << "\n";
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
// test_interrogate always wants to show an error dialog.
|
||||||
|
SetErrorMode(0);
|
||||||
|
#endif
|
||||||
|
|
||||||
void *dl = load_dso(DSearchPath(), pathname);
|
void *dl = load_dso(DSearchPath(), pathname);
|
||||||
if (dl == NULL) {
|
if (dl == NULL) {
|
||||||
cerr << "Unable to load: " << load_dso_error() << "\n";
|
cerr << "Unable to load: " << load_dso_error() << "\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user