VirtualBox

Ignore:
Timestamp:
Jul 28, 2020 2:51:29 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139545
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/Main/glue/initterm.cpp

    r85121 r85489  
    457457    AssertMsg(rc == S_OK || rc == S_FALSE, ("rc=%08X\n", rc));
    458458
     459#if defined(VBOX_WITH_SDS)
     460    // Setup COM Security to enable impersonation
     461    HRESULT hrGUICoInitializeSecurity = CoInitializeSecurity(NULL,
     462                                                             -1,
     463                                                             NULL,
     464                                                             NULL,
     465                                                             RPC_C_AUTHN_LEVEL_DEFAULT,
     466                                                             RPC_C_IMP_LEVEL_IMPERSONATE,
     467                                                             NULL,
     468                                                             EOAC_NONE,
     469                                                             NULL);
     470    NOREF(hrGUICoInitializeSecurity);
     471    Assert(SUCCEEDED(hrGUICoInitializeSecurity) || hrGUICoInitializeSecurity == RPC_E_TOO_LATE);
     472#endif
     473
    459474    /*
    460475     * IRundown has unsafe two methods we need to patch to prevent remote access.
Note: See TracChangeset for help on using the changeset viewer.

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