Boost C++ Libraries: Ticket #1226: macro TEXT() in GetProcAddress() https://svn.boost.org/trac10/ticket/1226 <p> This trivially fixable problem was reported by Toshiyuki Tega on 2007-05-05 on dev mail list and is still not fixed. Just remove the TEXT() and its done. </p> <hr /> <p> I've just noticed that, in mutex.inl (boost::thread), a string argument to <a class="missing wiki">GetProcAddress</a> is inproperly guarded by TEXT() macro. </p> <p> mutex.inl, line 27 </p> <blockquote> <p> ... <a class="missing wiki">GetProcAddress</a>(kernel_module, TEXT("<a class="missing wiki">TryEnterCriticalSection</a>"))); </p> </blockquote> <p> Since <a class="missing wiki">GetProcAddress</a> doesn't have ANSI/Unicode versions, TEXT() should be stripped off. I'm referring to the 1.34.0 beta sources. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1226 Trac 1.4.3 Anthony Williams Wed, 14 Nov 2007 16:21:27 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1226#comment:1 https://svn.boost.org/trac10/ticket/1226#comment:1 <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">fixed</span> </li> </ul> <p> The new boost thread implementation doesn't use <a class="missing wiki">GetProcAddress</a>() </p> Ticket