VirtualBox

Changeset 48013 in vbox


Ignore:
Timestamp:
Aug 23, 2013 8:58:13 AM (11 years ago)
Author:
vboxsync
Message:

Main/Performance: fix the return code

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/Performance.h

    r45051 r48013  
    199199        void setGuest(CollectorGuest *aGuest) { mCGuest = aGuest; };
    200200        CollectorGuest *getGuest() { return mCGuest; };
    201         virtual int execute() = 0;
     201        virtual HRESULT execute() = 0;
    202202
    203203        virtual void debugPrint(void *aObject, const char *aFunction, const char *aText) = 0;
     
    212212        CGRQEnable(ULONG aMask)
    213213            : mMask(aMask) {};
    214         int execute();
     214        HRESULT execute();
    215215
    216216        void debugPrint(void *aObject, const char *aFunction, const char *aText);
     
    224224        CGRQDisable(ULONG aMask)
    225225            : mMask(aMask) {};
    226         int execute();
     226        HRESULT execute();
    227227
    228228        void debugPrint(void *aObject, const char *aFunction, const char *aText);
     
    235235    public:
    236236        CGRQAbort() {};
    237         int execute();
     237        HRESULT execute();
    238238
    239239        void debugPrint(void *aObject, const char *aFunction, const char *aText);
     
    280280
    281281        int enqueueRequest(CollectorGuestRequest *aRequest);
    282         int enableInternal(ULONG mask);
     282        HRESULT enableInternal(ULONG mask);
    283283        int disableInternal(ULONG mask);
    284284
  • trunk/src/VBox/Main/src-server/Performance.cpp

    r48009 r48013  
    184184}
    185185
    186 int CGRQEnable::execute()
     186HRESULT CGRQEnable::execute()
    187187{
    188188    Assert(mCGuest);
     
    199199}
    200200
    201 int CGRQDisable::execute()
     201HRESULT CGRQDisable::execute()
    202202{
    203203    Assert(mCGuest);
     
    214214}
    215215
    216 int CGRQAbort::execute()
     216HRESULT CGRQAbort::execute()
    217217{
    218218    return E_ABORT;
     
    282282}
    283283
    284 int CollectorGuest::enableInternal(ULONG mask)
     284HRESULT CollectorGuest::enableInternal(ULONG mask)
    285285{
    286286    HRESULT ret = S_OK;
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