Changeset 12460 in vbox
- Timestamp:
- Sep 15, 2008 12:15:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/win/PerformanceWin.cpp
r12459 r12460 332 332 { 333 333 Log (("Failed to read 'IDProcess' property. HR = %x\n", hr)); 334 return VERR_INTERNAL_ERROR; 334 rc = VERR_INTERNAL_ERROR; 335 break; 335 336 } 336 337 LogFlowThisFunc (("Matching process %x against the list of machines...\n", dwIDProcess)); … … 345 346 { 346 347 Log (("Failed to read 'PercentUserTime' property. HR = %x\n", hr)); 347 return VERR_INTERNAL_ERROR; 348 rc = VERR_INTERNAL_ERROR; 349 break; 348 350 } 349 351 if (FAILED (hr = apEnumAccess[i]->ReadQWORD( … … 352 354 { 353 355 Log (("Failed to read 'PercentPrivilegedTime' property. HR = %x\n", hr)); 354 return VERR_INTERNAL_ERROR; 356 rc = VERR_INTERNAL_ERROR; 357 break; 355 358 } 356 359 if (FAILED (hr = apEnumAccess[i]->ReadQWORD( … … 359 362 { 360 363 Log (("Failed to read 'Timestamp_Sys100NS' property. HR = %x\n", hr)); 361 return VERR_INTERNAL_ERROR; 364 rc = VERR_INTERNAL_ERROR; 365 break; 362 366 } 363 367 if (FAILED (hr = apEnumAccess[i]->ReadQWORD( … … 366 370 { 367 371 Log (("Failed to read 'WorkingSet' property. HR = %x\n", hr)); 368 return VERR_INTERNAL_ERROR; 372 rc = VERR_INTERNAL_ERROR; 373 break; 369 374 } 370 375 … … 373 378 rc = VINF_SUCCESS; 374 379 } 380 } 381 382 for (unsigned i = 0; i < dwNumReturned; i++) 383 { 375 384 apEnumAccess[i]->Release(); 376 385 apEnumAccess[i] = NULL; … … 412 421 { 413 422 Log (("Failed to read 'Name' property. HR = %x\n", hr)); 414 return VERR_INTERNAL_ERROR; 423 rc = VERR_INTERNAL_ERROR; 424 break; 415 425 } 416 426 if (wcscmp(tmpBuf, L"_Total") == 0) … … 420 430 user))) 421 431 { 422 Log (("Failed to read 'PercentUserTime' property. HR = %x\n", hr)); 423 return VERR_INTERNAL_ERROR; 432 Log (("Failed to read 'PercentUserTime' property. HR = %x\n", hr)); 433 rc = VERR_INTERNAL_ERROR; 434 break; 424 435 } 425 436 if (FAILED (hr = apEnumAccess[i]->ReadQWORD( … … 427 438 kernel))) 428 439 { 429 Log (("Failed to read 'PercentPrivilegedTime' property. HR = %x\n", hr)); 430 return VERR_INTERNAL_ERROR; 440 Log (("Failed to read 'PercentPrivilegedTime' property. HR = %x\n", hr)); 441 rc = VERR_INTERNAL_ERROR; 442 break; 431 443 } 432 444 if (FAILED (hr = apEnumAccess[i]->ReadQWORD( … … 434 446 idle))) 435 447 { 436 Log (("Failed to read 'PercentProcessorTime' property. HR = %x\n", hr)); 437 return VERR_INTERNAL_ERROR; 448 Log (("Failed to read 'PercentProcessorTime' property. HR = %x\n", hr)); 449 rc = VERR_INTERNAL_ERROR; 450 break; 438 451 } 439 452 rc = VINF_SUCCESS; 440 453 } 454 } 455 for (unsigned i = 0; i < dwNumReturned; i++) 456 { 441 457 apEnumAccess[i]->Release(); 442 458 apEnumAccess[i] = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.