From f0d6de271de6cdb482c504b756f9b2208ba424d5 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Fri, 23 Feb 2018 16:05:35 -0500 Subject: Use GetProcessWorkingSetSize instead of GetProcessWorkingSetSizeEx The Ex variant is not available in older Wine (including the version in Trusty) and GetProcessWorkingSetSize is sufficient. --- src/lib/utils/os_utils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib/utils/os_utils.cpp') diff --git a/src/lib/utils/os_utils.cpp b/src/lib/utils/os_utils.cpp index 57439e8ca..b8c31234a 100644 --- a/src/lib/utils/os_utils.cpp +++ b/src/lib/utils/os_utils.cpp @@ -247,8 +247,7 @@ size_t OS::get_memory_locking_limit() #elif defined(BOTAN_TARGET_OS_HAS_VIRTUAL_LOCK) SIZE_T working_min = 0, working_max = 0; - DWORD working_flags = 0; - if(!::GetProcessWorkingSetSizeEx(::GetCurrentProcess(), &working_min, &working_max, &working_flags)) + if(!::GetProcessWorkingSetSize(::GetCurrentProcess(), &working_min, &working_max)) { return 0; } -- cgit v1.2.3