VirtualBox

Ignore:
Timestamp:
May 6, 2016 2:43:04 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107075
Message:

Never use static instances of CComModule as it messes up the log filename by using VBoxRT.dll before it's initialized.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBalloonCtrl/VBoxWatchdog.cpp

    r60759 r60865  
    144144static void watchdogShutdown();
    145145
    146 #ifdef RT_OS_WINDOWS
    147 /* Required for ATL. */
    148 static ATL::CComModule _Module;
    149 #endif
    150146
    151147/**
     
    988984    if (RT_FAILURE(rc))
    989985        return RTMsgInitFailure(rc);
     986#ifdef RT_OS_WINDOWS
     987    ATL::CComModule _Module; /* Required internally by ATL (constructor records instance in global variable). */
     988#endif
    990989
    991990    /*
    992991     * Parse the global options
    993     */
     992     */
    994993    int c;
    995994    const char *pszLogFile = NULL;
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