Opened 9 years ago
Closed 8 years ago
#8912 closed Bugs (wontfix)
libs/regex/src/fileiter.cpp: Spurious failure check
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | regex |
Version: | Boost 1.54.0 | Severity: | Problem |
Keywords: | regex windows open CreateFileMapping | Cc: |
Description
Line 106:
hmap = CreateFileMapping(hfile, 0, PAGE_READONLY, 0, 0, 0);
(hmap == NULL)) |
{
CloseHandle(hfile); hmap = 0; hfile = 0; std::runtime_error err("Unable to create file mapping."); boost::re_detail::raise_runtime_error(err);
}
According to MSDN (http://msdn.microsoft.com/en-us/library/windows/desktop/aa366537%28v=vs.85%29.aspx), CreateFileMapping returns NULL on failure, and not INVALID_HANDLE_VALUE.
Change History (2)
comment:1 by , 9 years ago
comment:2 by , 8 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Is this a real issue? I guess in theory the extra check for INVALID_HANDLE_VALUE isn't required, but it certainly can't do any harm?