[Boost-bugs] [Boost C++ Libraries] #1226: macro TEXT() in GetProcAddress()

Subject: [Boost-bugs] [Boost C++ Libraries] #1226: macro TEXT() in GetProcAddress()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-09-02 18:00:05


#1226: macro TEXT() in GetProcAddress()
-------------------------------------+--------------------------------------
 Reporter: Pavel Vozenilek | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: | Component: threads
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 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.

 ---------------------
 I've just noticed that, in mutex.inl (boost::thread), a string argument
 to GetProcAddress is inproperly guarded by TEXT() macro.

 mutex.inl, line 27
   ... GetProcAddress(kernel_module, TEXT("TryEnterCriticalSection")));

 Since GetProcAddress doesn't have ANSI/Unicode versions, TEXT() should
 be stripped off. I'm referring to the 1.34.0 beta sources.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1226>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC