Changeset 44362 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jan 24, 2013 9:11:05 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/MachineDebuggerImpl.cpp
r44347 r44362 5 5 6 6 /* 7 * Copyright (C) 2006-201 0Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 297 297 298 298 AutoCaller autoCaller(this); 299 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 299 if (FAILED(autoCaller.rc())) 300 return autoCaller.rc(); 300 301 301 302 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 302 303 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()); 307 307 else 308 308 *aEnabled = false; … … 333 333 } 334 334 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); 339 342 340 343 return S_OK;
Note:
See TracChangeset
for help on using the changeset viewer.