VirtualBox

Changeset 39753 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 11, 2012 4:14:02 PM (13 years ago)
Author:
vboxsync
Message:

IPRT: disable critical error message boxes on init. Take three.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/init.cpp

    r39752 r39753  
    331331     */
    332332#ifdef RT_OS_WINDOWS
    333     SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
     333    UINT fOldErrMode = SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
     334    SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX | fOldErrMode);
    334335#elif defined(RT_OS_OS2)
    335336# error "FIXME"
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette