diff options
author | rpj <rpj> | 2001-08-23 05:43:54 +0000 |
---|---|---|
committer | rpj <rpj> | 2001-08-23 05:43:54 +0000 |
commit | 072136baeb545093ef776983512c6adc2107dd3f (patch) | |
tree | 2c292524b364e166bc0ef4a33e99504d1c0b8d8d /tsd.c | |
parent | 5be65c802888b2e6f42b3256053b67e2d755d842 (diff) |
* tsd.c (pthread_getspecific): Preserve the last
winsock error [from WSAGetLastError()].
Diffstat (limited to 'tsd.c')
-rw-r--r-- | tsd.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -323,10 +323,12 @@ pthread_getspecific (pthread_key_t key) */ { int lasterror = GetLastError(); + int lastWSAerror = WSAGetLastError(); void *ptr = TlsGetValue (key->key); SetLastError( lasterror ); + WSASetLastError( lastWSAerror ); return ptr; } |