VirtualBox

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


Ignore:
Timestamp:
Jan 24, 2013 9:11:05 PM (12 years ago)
Author:
vboxsync
Message:

PATM: Changed two Main APIs to use PUVM instead of PVM (one of them directly accessed it). Lot's of function scope cleanups.

File:
1 edited

Legend:

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

    r44347 r44362  
    55
    66/*
    7  * Copyright (C) 2006-2010 Oracle Corporation
     7 * Copyright (C) 2006-2013 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    297297
    298298    AutoCaller autoCaller(this);
    299     if (FAILED(autoCaller.rc())) return autoCaller.rc();
     299    if (FAILED(autoCaller.rc()))
     300        return autoCaller.rc();
    300301
    301302    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    302303
    303     Console::SafeVMPtrQuiet pVM (mParent);
    304 
    305     if (pVM.isOk())
    306         *aEnabled = PATMIsEnabled (pVM.raw());
     304    Console::SafeVMPtrQuiet ptrVM(mParent);
     305    if (ptrVM.isOk())
     306        *aEnabled = PATMR3IsEnabled (ptrVM.rawUVM());
    307307    else
    308308        *aEnabled = false;
     
    333333    }
    334334
    335     Console::SafeVMPtr pVM(mParent);
    336     if (FAILED(pVM.rc())) return pVM.rc();
    337 
    338     PATMR3AllowPatching (pVM, aEnable);
     335    Console::SafeVMPtr ptrVM(mParent);
     336    if (FAILED(ptrVM.rc()))
     337        return ptrVM.rc();
     338
     339    int vrc = PATMR3AllowPatching(ptrVM.rawUVM(), RT_BOOL(aEnable));
     340    if (RT_FAILURE(vrc))
     341        return setError(VBOX_E_VM_ERROR, tr("PATMR3AllowPatching returned %Rrc"), vrc);
    339342
    340343    return 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