Wrong TSDLNet_SocketSet.sockets variable definition in sdl_net unit
Original Reporter info from Mantis: Imants
-
Reporter name: Imants
Original Reporter info from Mantis: Imants
- Reporter name: Imants
Description:
I checked SDL_Net source code and saw that sockets is pointer to pointer to TSDLNet_Socket not just pointer
//SDL net c source code
struct _SDLNet_SocketSet {
int numsockets;
int maxsockets;
struct SDLNet_Socket **sockets;
};
//sdl_net.pas TSDLNet_SocketSet definition
TSDLNet_SocketSet = record
numsockets : integer;
maxsockets : integer;
sockets : PSDLNet_Socket;
end;
corect whay would be
TSDLNet_SocketSet = record
numsockets : integer;
maxsockets : integer;
sockets : ^PSDLNet_Socket;
end;
Mantis conversion info:
- Mantis ID: 24834
- Fixed in version: 2.6.4
- Fixed in revision: 25763 (#c32a0519)