VirtualBox

Changeset 85489 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 28, 2020 2:51:29 PM (4 years ago)
Author:
vboxsync
Message:

Main: bugref:9784: Moved the call to CoInitializeSecurity into com::Initialize from UICommon.cpp and VirtualBoxClientImpl.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp

    r84964 r85489  
    40914091    }
    40924092
    4093 #ifdef VBOX_WITH_SDS
    4094     // setup Client COM Security to enable impersonation required by VBOX_SDS
    4095     HRESULT hrGUICoInitializeSecurity = CoInitializeSecurity(NULL,
    4096                                                              -1,
    4097                                                              NULL,
    4098                                                              NULL,
    4099                                                              RPC_C_AUTHN_LEVEL_DEFAULT,
    4100                                                              RPC_C_IMP_LEVEL_IMPERSONATE,
    4101                                                              NULL,
    4102                                                              EOAC_NONE,
    4103                                                              NULL);
    4104     NOREF(hrGUICoInitializeSecurity);
    4105     Assert(RPC_E_TOO_LATE != hrGUICoInitializeSecurity);
    4106     Assert(hrGUICoInitializeSecurity == S_OK);
    4107 #endif
    4108 
    41094093    /* Make sure VirtualBoxClient instance created: */
    41104094    m_comVBoxClient.createInstance(CLSID_VirtualBoxClient);
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