Changeset 60865 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 6, 2016 2:43:04 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r60862 r60865 180 180 //////////////////////////////////////////////////////////////////////////////// 181 181 182 #ifdef VBOX_WS_WIN183 /** ATL requires a module to be instantiated (set internal global variable).184 * @note Do NOT do this statically as it starts using IPRT before it's ready! */185 static ATL::CComModule *_Module;186 #endif187 182 188 183 /* static */ … … 203 198 /* Create instance: */ 204 199 new VBoxGlobal; 205 #ifdef VBOX_WS_WIN206 _Module = new ATL::CComModule;207 #endif208 200 /* Prepare instance: */ 209 201 m_spInstance->prepare(); -
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r60362 r60865 362 362 extern "C" DECLEXPORT(int) TrustedMain(int argc, char **argv, char ** /*envp*/) 363 363 { 364 #ifdef RT_OS_WINDOWS 365 ATL::CComModule _Module; /* Required internally by ATL (constructor records instance in global variable). */ 366 #endif 367 364 368 /* Failed result initially: */ 365 369 int iResultCode = 1;
Note:
See TracChangeset
for help on using the changeset viewer.