[fpc-devel] Win32 sockets patch

Ales Katona almindor at gmail.com
Mon Jul 25 18:41:57 CEST 2005


There is an ugly type bug in win32 sockets.pp.
This patch fixes it.

ssize_t = cuint16 -- this caused a bug with fprecv/fprecvfrom and 
fpsend/fpsendto calls because winsock.recv[from]/winsock.send[to] calls 
return a longint while fprecv used an unsigned int as return value.

This caused the recv call to recieve loads of rubbish when an error occured.

I changed ssize_t to Int64(as it is in unix).
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sockets.diff
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20050725/1288b97c/attachment.ksh>


More information about the fpc-devel mailing list