Opened 15 years ago
Closed 15 years ago
#1226 closed Bugs (fixed)
macro TEXT() in GetProcAddress()
Reported by: | Pavel Vozenilek | Owned by: | Anthony Williams |
---|---|---|---|
Milestone: | Component: | threads | |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
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.
Note:
See TracTickets
for help on using tickets.
The new boost thread implementation doesn't use GetProcAddress()