summaryrefslogtreecommitdiffstats
path: root/util/system/mlock.cpp
diff options
context:
space:
mode:
authormitya <[email protected]>2022-02-10 16:51:43 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:51:43 +0300
commitb23c761d35d9e2398117c1c8a02629a593b65370 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb /util/system/mlock.cpp
parent143708582af622873f254206609b70df73a651e2 (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 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 28a7e8ff278..435338c98fb 100644
--- a/util/system/mlock.cpp
+++ b/util/system/mlock.cpp
@@ -30,7 +30,7 @@ void LockMemory(const void* addr, size_t len) {
ythrow yexception() << LastSystemErrorText();
if (!SetProcessWorkingSetSize(hndl, min + len, max + len))
ythrow yexception() << LastSystemErrorText();
- if (!VirtualLock((LPVOID)addr, len))
+ if (!VirtualLock((LPVOID)addr, len))
ythrow yexception() << LastSystemErrorText();
#endif
}
@@ -47,7 +47,7 @@ void UnlockMemory(const void* addr, size_t len) {
ythrow yexception() << LastSystemErrorText();
if (!SetProcessWorkingSetSize(hndl, min - len, max - len))
ythrow yexception() << LastSystemErrorText();
- if (!VirtualUnlock((LPVOID)addr, len))
+ if (!VirtualUnlock((LPVOID)addr, len))
ythrow yexception() << LastSystemErrorText();
#endif
}