summaryrefslogtreecommitdiffstats
path: root/util/system/mlock.cpp
diff options
context:
space:
mode:
authoriddqd <[email protected]>2022-02-10 16:49:45 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:49:45 +0300
commit07fce9c5f7771600d0b3d70e1f88fd8a7e164d85 (patch)
treee4aa4750fbb864d70f8c06cf03d2750e979ea3bf /util/system/mlock.cpp
parentaf42068bf6cd93c976b80dd0388fa48cdf65da11 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/mlock.cpp')
-rw-r--r--util/system/mlock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/system/mlock.cpp b/util/system/mlock.cpp
index 435338c98fb..df69fed7976 100644
--- a/util/system/mlock.cpp
+++ b/util/system/mlock.cpp
@@ -26,7 +26,7 @@ void LockMemory(const void* addr, size_t len) {
#elif defined(_win_)
HANDLE hndl = GetCurrentProcess();
SIZE_T min, max;
- if (!GetProcessWorkingSetSize(hndl, &min, &max))
+ if (!GetProcessWorkingSetSize(hndl, &min, &max))
ythrow yexception() << LastSystemErrorText();
if (!SetProcessWorkingSetSize(hndl, min + len, max + len))
ythrow yexception() << LastSystemErrorText();
@@ -43,7 +43,7 @@ void UnlockMemory(const void* addr, size_t len) {
#elif defined(_win_)
HANDLE hndl = GetCurrentProcess();
SIZE_T min, max;
- if (!GetProcessWorkingSetSize(hndl, &min, &max))
+ if (!GetProcessWorkingSetSize(hndl, &min, &max))
ythrow yexception() << LastSystemErrorText();
if (!SetProcessWorkingSetSize(hndl, min - len, max - len))
ythrow yexception() << LastSystemErrorText();