Boost C++ Libraries: Ticket #8912: libs/regex/src/fileiter.cpp: Spurious failure check https://svn.boost.org/trac10/ticket/8912 <p> Line 106: </p> <p> hmap = <a class="missing wiki">CreateFileMapping</a>(hfile, 0, PAGE_READONLY, 0, 0, 0); </p> <table class="wiki"> <tr>if((hmap == INVALID_HANDLE_VALUE) <td> (hmap == NULL)) </td></tr></table> <p> { </p> <blockquote> <p> <a class="missing wiki">CloseHandle</a>(hfile); hmap = 0; hfile = 0; std::runtime_error err("Unable to create file mapping."); boost::re_detail::raise_runtime_error(err); </p> </blockquote> <p> } </p> <p> According to MSDN (<a class="ext-link" href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa366537%28v=vs.85%29.aspx"><span class="icon">​</span>http://msdn.microsoft.com/en-us/library/windows/desktop/aa366537%28v=vs.85%29.aspx</a>), <a class="missing wiki">CreateFileMapping</a> returns NULL on failure, and not INVALID_HANDLE_VALUE. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8912 Trac 1.4.3 John Maddock Sat, 14 Dec 2013 12:22:24 GMT <link>https://svn.boost.org/trac10/ticket/8912#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8912#comment:1</guid> <description> <p> 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? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Thu, 13 Nov 2014 10:33:55 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8912#comment:2 https://svn.boost.org/trac10/ticket/8912#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> Ticket