Browse Source

* fixed WSADATA record structure bug

Jonas Maebe 25 years ago
parent
commit
79aa1752e9
1 changed files with 7 additions and 4 deletions
  1. 7 4
      rtl/win32/winsock.pp

+ 7 - 4
rtl/win32/winsock.pp

@@ -253,8 +253,8 @@ unit winsock;
        WSADATA = record
        WSADATA = record
           wVersion : WORD;
           wVersion : WORD;
           wHighVersion : WORD;
           wHighVersion : WORD;
-          szDescription : array[0..WSADESCRIPTION_LEN] of char;
-          szSystemStatus : array[0..WSASYS_STATUS_LEN] of char;
+          szDescription : array[0..WSADESCRIPTION_LEN-1] of char;
+          szSystemStatus : array[0..WSASYS_STATUS_LEN-1] of char;
           iMaxSockets : word;
           iMaxSockets : word;
           iMaxUdpDg : word;
           iMaxUdpDg : word;
           lpVendorInfo : pchar;
           lpVendorInfo : pchar;
@@ -927,7 +927,10 @@ unit winsock;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.6  2000-02-20 20:34:02  florian
+  Revision 1.7  2000-02-23 15:00:55  jonas
+    * fixed WSADATA record structure bug
+
+  Revision 1.6  2000/02/20 20:34:02  florian
     * dub id fixed
     * dub id fixed
 
 
   Revision 1.5  2000/02/09 16:59:35  peter
   Revision 1.5  2000/02/09 16:59:35  peter
@@ -936,4 +939,4 @@ end.
   Revision 1.4  2000/01/07 16:41:53  daniel
   Revision 1.4  2000/01/07 16:41:53  daniel
     * copyright 2000
     * copyright 2000
 
 
-}
+}