From 9cf92ca918333da912e4f2bd4c949b8557a3d375 Mon Sep 17 00:00:00 2001 From: Andrew Bell Date: Wed, 3 Jun 2020 07:54:50 -0400 Subject: [PATCH] Fix CreateFileMapping args. --- pdal/util/FileUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdal/util/FileUtils.cpp b/pdal/util/FileUtils.cpp index e61e353991..09f38b4194 100644 --- a/pdal/util/FileUtils.cpp +++ b/pdal/util/FileUtils.cpp @@ -478,7 +478,7 @@ MapContext mapFile(const std::string& filename, bool readOnly, } #else ctx.m_handle = CreateFileMapping((HANDLE)_get_osfhandle(ctx.m_fd), - NULL, PAGE_READONLY, FILE_MAP_READ, 0, 0, NULL); + NULL, PAGE_READONLY, 0, 0, NULL); uint32_t low = pos & 0xFFFFFFFF; uint32_t high = (pos >> 8); ctx.m_addr = MapViewOfFile(ctx.m_handle, FILE_MAP_READ, high, low,