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>2017-09-19 19:03:59 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2017-09-19 19:03:59 +0300
commitad2256975a1699610f9e5302f45fb54ec96a3f42 (patch)
tree7d9e0846b94ecc008bc3985acbc45525da6639ee
parent0376da0a3e08bf5f27983c4e937293fd40b8d2b8 (diff)
Fix map_handle regression on Windows
-rw-r--r--.travis.yml2
-rw-r--r--include/afio/v2.0/detail/impl/windows/map_handle.ipp2
2 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 6ab7543f..2f4e5f95 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -84,7 +84,7 @@ script:
cd doc/html;
git checkout gh-pages;
cd ../..;
- CXX=clang++-4.0 ctest -S .docs.cmake -V;
+ CXX=g++-7 ctest -S .docs.cmake -VV;
cd doc/html;
git add . || true;
git commit -a -m "Travis CI updates documentation" || true;
diff --git a/include/afio/v2.0/detail/impl/windows/map_handle.ipp b/include/afio/v2.0/detail/impl/windows/map_handle.ipp
index 2a8801ea..b5321669 100644
--- a/include/afio/v2.0/detail/impl/windows/map_handle.ipp
+++ b/include/afio/v2.0/detail/impl/windows/map_handle.ipp
@@ -330,7 +330,7 @@ result<map_handle> map_handle::map(section_handle &section, size_type bytes, ext
LARGE_INTEGER _offset;
_offset.QuadPart = offset;
SIZE_T _bytes = bytes;
- if((_flag & section_handle::flag::nocommit) || (_flag == section_handle::flag::none))
+ if(section.backing() && ((_flag & section_handle::flag::nocommit) || (_flag == section_handle::flag::none)))
{
allocation = MEM_RESERVE;
commitsize = 0;