VirtualBox

Changeset 44486 in vbox


Ignore:
Timestamp:
Jan 31, 2013 12:01:11 PM (12 years ago)
Author:
vboxsync
Message:

Just save all the init flags instead of just the unobtrusive one.

File:
1 edited

Legend:

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

    r44485 r44486  
    9393DECLHIDDEN(size_t)          g_offrtProcName;
    9494
     95/** The IPRT init flags. */
     96static uint32_t             g_fInitFlags;
     97
    9598/** The argument count of the program.  */
    9699static int                  g_crtArgs = -1;
     
    99102/** The original argument vector of the program. */
    100103static char **              g_papszrtOrgArgs;
    101 
    102 /** Are we running in unobtrusive mode? */
    103 static bool                 g_fUnobtrusive = false;
    104104
    105105/**
     
    344344#endif
    345345
    346     g_fUnobtrusive = RT_BOOL(fFlags & RTR3INIT_FLAGS_UNOBTRUSIVE);
     346    /*
     347     * Save the init flags.
     348     */
     349    g_fInitFlags |= fFlags;
    347350
    348351#if !defined(IN_GUEST) && !defined(RT_NO_GIP)
     
    507510#if !defined(IN_GUEST) && !defined(RT_NO_GIP)
    508511        if (fFlags & RTR3INIT_FLAGS_SUPLIB)
     512        {
    509513            SUPR3Init(NULL);
     514            g_fInitFlags |= RTR3INIT_FLAGS_SUPLIB;
     515        }
    510516#endif
    511517        if (!pszProgramPath)
     
    567573RTR3DECL(bool) RTR3InitIsUnobtrusive(void)
    568574{
    569     return g_fUnobtrusive;
     575    return RT_BOOL(g_fInitFlags & RTR3INIT_FLAGS_UNOBTRUSIVE);
    570576}
    571577
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