Skip to content

Commit

Permalink
Fix CreateFileMapping args.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Jun 3, 2020
1 parent 0d75928 commit 9cf92ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdal/util/FileUtils.cpp
Expand Up @@ -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,
Expand Down

0 comments on commit 9cf92ca

Please sign in to comment.