aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-02-23 16:05:35 -0500
committerJack Lloyd <[email protected]>2018-02-23 16:05:35 -0500
commitf0d6de271de6cdb482c504b756f9b2208ba424d5 (patch)
tree43df365653813d5eb9f8e25be62f5d73f19278f6 /src/lib/utils
parent517b0241f878b0603ffc02eb5829f0aa7403f38d (diff)
Use GetProcessWorkingSetSize instead of GetProcessWorkingSetSizeEx
The Ex variant is not available in older Wine (including the version in Trusty) and GetProcessWorkingSetSize is sufficient.
Diffstat (limited to 'src/lib/utils')
-rw-r--r--src/lib/utils/os_utils.cpp3
1 files changed, 1 insertions, 2 deletions
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;
}