Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2019-10-16 15:22:38 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2019-10-16 15:22:38 +0300
commit8ddf2ae04cf4ae8134bb14c1da33a99e05615edd (patch)
tree201ae8ad109fd974ff0a21f65509cf01051e2213
parent8aa7070561256f147aa5bb6c20b7c5ae4370fb0f (diff)
Forgot a fix last commit.
-rw-r--r--include/llfio/v2.0/detail/impl/windows/map_handle.ipp5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llfio/v2.0/detail/impl/windows/map_handle.ipp b/include/llfio/v2.0/detail/impl/windows/map_handle.ipp
index 38285a57..86ac7cf3 100644
--- a/include/llfio/v2.0/detail/impl/windows/map_handle.ipp
+++ b/include/llfio/v2.0/detail/impl/windows/map_handle.ipp
@@ -859,7 +859,10 @@ result<map_handle::buffer_type> map_handle::do_not_store(buffer_type region) noe
OUTCOME_TRYV(win32_maps_apply(region.data(), region.size(), win32_map_sought::committed, [](byte *addr, size_t bytes) -> result<void> {
if(DiscardVirtualMemory_(addr, bytes) == 0)
{
- return win32_error();
+ if(ERROR_NOT_LOCKED != GetLastError())
+ {
+ return win32_error();
+ }
}
return success();
}));