diff options
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; } |