Diff for /libraries/liblber/nt_err.c between versions 1.2 and 1.3

version 1.2, 2000/05/12 21:43:33 version 1.3, 2000/05/12 21:53:14
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/libraries/liblber/nt_err.c,v 1.1 2000/05/12 19:16:15 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/liblber/nt_err.c,v 1.2 2000/05/12 21:43:33 kurt Exp $ */
 #include "portable.h"  #include "portable.h"
   
 #ifdef HAVE_WINSOCK2  #ifdef HAVE_WINSOCK2
Line 83  char *ber_pvt_wsa_err2string( int err ) Line 83  char *ber_pvt_wsa_err2string( int err )
 }  }
   
 #undef __RETSTR  #undef __RETSTR
   
 #if 0   /* No one seems to be using these */  
 char *ber_pvt_wsa_last_errstring( void )  
 {  
         return ber_pvt_wsa_err2string( WSAGetLastError() );  
 }  
   
 #include <windows.h>  
   
 char *GetErrorString( int err )  
 {  
         static char msgBuf[1024];  
   
         FormatMessage(  
                 FORMAT_MESSAGE_FROM_SYSTEM,  
                 NULL,  
                 err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),  
                 msgBuf, 1024, NULL );  
   
         return msgBuf;  
 }  
   
 char *GetLastErrorString( void )  
 {  
         return GetErrorString( GetLastError() );  
 }  
 #endif  

Removed from v.1.2  
changed lines
  Added in v.1.3


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org