VBOX: Replace calls to GetProcessWorkingSetSizeEx() with GetProcessWorkingSetSize(). Some versions of Windows XP do not support the API.

This commit is contained in:
Rom Walton 2014-03-19 16:05:05 -04:00
parent 7c77101f6e
commit ea7c24e387
1 changed files with 4 additions and 7 deletions

View File

@ -1535,14 +1535,12 @@ void VBOX_VM::dumphypervisorstatusreports() {
#ifdef _WIN32
SIZE_T ulMinimumWorkingSetSize;
SIZE_T ulMaximumWorkingSetSize;
DWORD dwFlags;
if (
GetProcessWorkingSetSizeEx(
GetProcessWorkingSetSize(
vboxsvc_pid_handle,
&ulMinimumWorkingSetSize,
&ulMaximumWorkingSetSize,
&dwFlags)
&ulMaximumWorkingSetSize)
) {
fprintf(
stderr,
@ -1554,11 +1552,10 @@ void VBOX_VM::dumphypervisorstatusreports() {
}
if (
GetProcessWorkingSetSizeEx(
GetProcessWorkingSetSize(
vm_pid_handle,
&ulMinimumWorkingSetSize,
&ulMaximumWorkingSetSize,
&dwFlags)
&ulMaximumWorkingSetSize)
) {
fprintf(
stderr,