mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-15 07:16:13 -04:00
Fix call to VirtualLock
This commit is contained in:
parent
692217d313
commit
1b2c8f03bf
@ -53,7 +53,7 @@ mmap::lock(file_off_t offset [[maybe_unused]], size_t size [[maybe_unused]]) {
|
||||
std::error_code ec;
|
||||
|
||||
#ifdef _WIN32
|
||||
if (::VirtualLock(mf_.const_data() + offset, size) == 0) {
|
||||
if (::VirtualLock(mf_.data() + offset, size) == 0) {
|
||||
ec.assign(::GetLastError(), std::system_category());
|
||||
}
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user