commit | 4d871f73af6b8310564dfcb63357dbfe8b1a1529 | [log] [tgz] |
---|---|---|
author | Mike Hommey <mh@glandium.org> | Wed Mar 04 10:54:10 2015 +0900 |
committer | Jason Evans <jasone@canonware.com> | Wed Mar 04 09:50:33 2015 -0800 |
tree | c6b38f561592759da88fc1d0fb51c707da579b68 | |
parent | 7c46fd59cce6afb14cdc6c819f662b6e81638f84 [diff] |
Preserve LastError when calling TlsGetValue TlsGetValue has a semantic difference with pthread_getspecific, in that it can return a non-error NULL value, so it always sets the LastError. But allocator callers may not be expecting calling e.g. free() to change the value of the last error, so preserve it.