VirtualBox

Changeset 45680 in vbox for trunk/src


Ignore:
Timestamp:
Apr 23, 2013 1:00:08 PM (12 years ago)
Author:
vboxsync
Message:

Main/VRDEServer: Back out code to disable VRDE server if no graphics controller is present. Would be inconsistent behavior, as it blocks other input/output channels which still exist.

Location:
trunk/src/VBox/Main
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r45674 r45680  
    1657216572  <interface
    1657316573    name="IVRDEServer" extends="$unknown"
    16574     uuid="e129c465-b575-48ea-adbb-49cbd9d3d458"
     16574    uuid="d38de40a-c2c1-4e95-b5a4-167b05f5694c"
    1657516575    wsmap="managed"
    1657616576    >
    16577     <attribute name="checkPrerequisites" type="boolean" readonly="yes">
    16578       <desc>Checks if the prerequisites for running the VRDE server are
    16579       fulfilled, returns @c true if they are.</desc>
    16580     </attribute>
    1658116577
    1658216578    <attribute name="enabled" type="boolean">
  • trunk/src/VBox/Main/include/VRDEServerImpl.h

    r45674 r45680  
    6666
    6767    // IVRDEServer properties
    68     STDMETHOD(COMGETTER(CheckPrerequisites))(BOOL *aCheckPrerequisites);
    6968    STDMETHOD(COMGETTER(Enabled))(BOOL *aEnabled);
    7069    STDMETHOD(COMSETTER(Enabled))(BOOL aEnable);
  • trunk/src/VBox/Main/src-client/ConsoleVRDPServer.cpp

    r45674 r45680  
    14321432
    14331433    /*
    1434      * Check if the prerequisites for VRDE are present.
    1435      */
    1436     BOOL fPrerequisites;
    1437     HRESULT hrc = server->COMGETTER(CheckPrerequisites)(&fPrerequisites);
    1438     AssertComRCReturn(hrc, Global::vboxStatusCodeFromCOM(hrc));
    1439     if (!fPrerequisites)
    1440     {
    1441         LogRel(("VRDE: prerequisite missing, skipped start\n"));
    1442         return VINF_SUCCESS;
    1443     }
    1444 
    1445     /*
    14461434     * Check if VRDE is enabled.
    14471435     */
    14481436    BOOL fEnabled;
    1449     hrc = server->COMGETTER(Enabled)(&fEnabled);
     1437    HRESULT hrc = server->COMGETTER(Enabled)(&fEnabled);
    14501438    AssertComRCReturn(hrc, Global::vboxStatusCodeFromCOM(hrc));
    14511439    if (!fEnabled)
  • trunk/src/VBox/Main/src-server/VRDEServerImpl.cpp

    r45674 r45680  
    245245// IVRDEServer properties
    246246/////////////////////////////////////////////////////////////////////////////
    247 
    248 STDMETHODIMP VRDEServer::COMGETTER(CheckPrerequisites)(BOOL *aCheckPrerequisites)
    249 {
    250     CheckComArgOutPointerValid(aCheckPrerequisites);
    251 
    252     AutoCaller autoCaller(this);
    253     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    254 
    255     BOOL res = TRUE;
    256     GraphicsControllerType_T graphicsController = GraphicsControllerType_Null;
    257     HRESULT rc = mParent->COMGETTER(GraphicsControllerType)(&graphicsController);
    258     if (SUCCEEDED(rc))
    259         res &= (graphicsController != GraphicsControllerType_Null);
    260     else
    261         res = FALSE;
    262 
    263     *aCheckPrerequisites = res;
    264 
    265     return S_OK;
    266 }
    267247
    268248STDMETHODIMP VRDEServer::COMGETTER(Enabled)(BOOL *aEnabled)
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