diff options
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | tsd.c | 2 | 
2 files changed, 9 insertions, 0 deletions
| @@ -1,3 +1,10 @@ +2001-08-23  Ross Johnson  <rpj@setup1.ise.canberra.edu.au> + +	Contributed by - "Phil Frisbie, Jr." <phil@hawksoft.com> + +	* tsd.c (pthread_getspecific): Preserve the last +	winsock error [from WSAGetLastError()]. +  2001-07-18  Ross Johnson  <rpj@setup1.ise.canberra.edu.au>  	Contributed by - "Scott McCaskill" <scott@magruder.org> @@ -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;  } | 
