Fix Win32 build

This commit is contained in:
Andrey Konoplyankin 2021-04-25 17:56:38 +03:00
parent 9f0a2c0740
commit 034be2f417

View file

@ -125,7 +125,7 @@ GSResult<bool> send_packet_win32(const Host &host, const Data &payload) {
udpServer.sin_port = htons(9);
// Send the packet
sendto(udpSocket, payload.bytes(), sizeof(unsigned char) * 102, 0, (struct sockaddr*) &udpServer, sizeof(udpServer));
sendto(udpSocket, (const char *)payload.bytes(), sizeof(unsigned char) * 102, 0, (struct sockaddr*) &udpServer, sizeof(udpServer));
return GSResult<bool>::success(true);
}
#endif