Changeset 27976 in vbox for trunk/src/VBox/Main/GuestImpl.cpp
- Timestamp:
- Apr 4, 2010 2:16:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/GuestImpl.cpp
r27945 r27976 229 229 AutoCaller autoCaller(this); 230 230 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 231 231 232 232 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 233 233 … … 252 252 } 253 253 254 STDMETHODIMP Guest::InternalGetStatistics(ULONG aCpuId, ULONG *aCpuUser, ULONG *aCpuKernel, ULONG *aCpuIdle, 254 STDMETHODIMP Guest::InternalGetStatistics(ULONG aCpuId, ULONG *aCpuUser, ULONG *aCpuKernel, ULONG *aCpuIdle, 255 255 ULONG *aMemTotal, ULONG *aMemFree, ULONG *aMemBalloon, ULONG *aMemCache, 256 256 ULONG *aPageTotal, ULONG *aPageFree) … … 387 387 { 388 388 uint32_t cbNewLen = *pcbList + cbLen + 1; /* Include zero termination. */ 389 char *pvTmp = (char*)RTMemRealloc(*ppvList, cbNewLen); 389 char *pvTmp = (char*)RTMemRealloc(*ppvList, cbNewLen); 390 390 if (NULL == pvTmp) 391 391 { … … 445 445 446 446 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 447 447 448 448 /* Just be on the safe side when calling another process. */ 449 449 alock.leave(); 450 450 451 451 HRESULT rc = E_UNEXPECTED; 452 452 using namespace guestControl; 453 454 int vrc = VINF_SUCCESS; 453 454 int vrc = VINF_SUCCESS; 455 455 Utf8Str Utf8Command(aCommand); 456 456 457 /* Prepare arguments. */ 457 /* Prepare arguments. */ 458 458 void *pvArgs; 459 459 uint32_t uNumArgs; … … 461 461 462 462 const char *pszCurArg = Utf8Str(aArguments).raw(); 463 vrc = prepareExecuteArgs(pszCurArg, 463 vrc = prepareExecuteArgs(pszCurArg, 464 464 &pvArgs, &cbArgs, &uNumArgs); 465 465 if (RT_SUCCESS(vrc)) … … 487 487 Utf8Str Utf8UserName(aUserName); 488 488 Utf8Str Utf8Password(aPassword); 489 489 490 490 VBOXHGCMSVCPARM paParms[13]; 491 491 int i = 0; … … 529 529 }; 530 530 531 return rc; 531 return rc; 532 532 #endif /* VBOX_WITH_GUEST_CONTROL */ 533 533 }
Note:
See TracChangeset
for help on using the changeset viewer.