VirtualBox

Changeset 48299 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Sep 5, 2013 11:07:08 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
88716
Message:

SessionImpl.cpp: VBoxClient-x86.so fixes.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/SessionImpl.cpp

    r48297 r48299  
    289289
    290290#else  /* VBOX_COM_INPROC_API_CLIENT */
     291    AssertFailed();
    291292    return VBOX_E_INVALID_OBJECT_STATE;
    292293#endif /* VBOX_COM_INPROC_API_CLIENT */
     
    322323    }
    323324
    324     HRESULT rc = E_FAIL;
    325 
    326325    /* query IInternalMachineControl interface */
    327326    mControl = aMachine;
     
    329328
    330329#ifndef VBOX_COM_INPROC_API_CLIENT
    331     rc = mConsole.createObject();
     330    HRESULT rc = mConsole.createObject();
    332331    AssertComRCReturn(rc, rc);
    333332
    334333    rc = mConsole->init(aMachine, mControl, aLockType);
    335334    AssertComRCReturn(rc, rc);
     335#else
     336    HRESULT rc = S_OK;
     337    mRemoteMachine = aMachine;
    336338#endif
    337339
     
    900902                                          BOOL aIsSetter, BSTR *aRetValue, LONG64 *aRetTimestamp, BSTR *aRetFlags)
    901903{
    902 #if defined(VBOX_WITH_GUEST_PROPS) && !defined(VBOX_COM_INPROC_API_CLIENT)
     904#ifdef VBOX_WITH_GUEST_PROPS
     905# ifndef VBOX_COM_INPROC_API_CLIENT
    903906    AutoCaller autoCaller(this);
    904907    AssertComRCReturn(autoCaller.rc(), autoCaller.rc());
     
    932935    else
    933936        return mConsole->setGuestProperty(aName, aValue, aFlags);
    934 #else /* VBOX_WITH_GUEST_PROPS not defined */
     937
     938# else  /* VBOX_COM_INPROC_API_CLIENT */
     939    /** @todo This is nonsense, non-VM API users shouldn't need to deal with this
     940     *        method call, VBoxSVC should be clever enough to see that the
     941     *        session doesn't have a console! */
     942    return E_ACCESSDENIED;
     943# endif /* VBOX_COM_INPROC_API_CLIENT */
     944
     945#else  /* VBOX_WITH_GUEST_PROPS */
    935946    ReturnComNotImplemented();
    936 #endif /* VBOX_WITH_GUEST_PROPS not defined */
     947#endif /* VBOX_WITH_GUEST_PROPS */
    937948}
    938949
     
    9981009                                       aProgress);
    9991010#else
     1011    AssertFailed();
    10001012    return E_NOTIMPL;
    10011013#endif
     
    10171029    return S_OK;
    10181030#else
     1031    AssertFailed();
    10191032    return E_NOTIMPL;
    10201033#endif
     
    10341047    return mConsole->pause(aReason);
    10351048#else
     1049    AssertFailed();
    10361050    return E_NOTIMPL;
    10371051#endif
     
    10511065    return mConsole->resume(aReason);
    10521066#else
     1067    AssertFailed();
    10531068    return E_NOTIMPL;
    10541069#endif
     
    10681083    return mConsole->saveState(aReason, aProgress);
    10691084#else
     1085    AssertFailed();
    10701086    return E_NOTIMPL;
    10711087#endif
     
    11311147            mConsole.setNull();
    11321148        }
     1149#else
     1150        mRemoteMachine.setNull();
    11331151#endif
    11341152    }
     
    11361154    {
    11371155        mRemoteMachine.setNull();
    1138 #ifndef VBOX_COM_INPROC_API_CLIENT
    11391156        mRemoteConsole.setNull();
    1140 #endif
    11411157    }
    11421158
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r48297 r48299  
    59355935     * silly race condition. */
    59365936
     5937    /** @todo This code is bothering API clients (like python script clients) with
     5938     *        the AccessGuestProperty call, creating unncessary IPC.  Need to
     5939     *        have a way of figuring out which kind of direct session it is... */
    59375940    if (!directControl)
    59385941        rc = E_ACCESSDENIED;
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