[fpc-devel] Win32 sockets patch

Florian Klaempfl F.Klaempfl at gmx.de
Mon Jul 25 22:18:07 CEST 2005

Ales Katona wrote:

> 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).

Applied, thx.

More information about the fpc-devel mailing list