Opened 11 years ago
#6822 new Patches
Patch to fix process_status_failure behaviour
Reported by: | Antony Polukhin | Owned by: | Beman Dawes |
---|---|---|---|
Milestone: | To Be Determined | Component: | filesystem |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: | antoshkka@… |
Description
Some compilers can call ::SetLastError(0) just before process_status_failure function is called, so ::GetLastError() would return 0. It is much safer to call ::GetLastError() in a function, that triggered a failure.
This error is discussed in threads http://lists.boost.org/boost-testing/2011/09/6927.php and http://www.mail-archive.com/mingw-w64-public@lists.sourceforge.net/msg04512.html
Patch is provided by Alexander Potocki.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
Patch for trunk version of libs/filesystem/src/operations.cpp