From 0e3713f26fd5eeb074fe28b5f2e3aae8940636c8 Mon Sep 17 00:00:00 2001 From: Daniel Collins Date: Fri, 21 Aug 2015 22:53:40 +0100 Subject: [PATCH] DirectPlay: Increase API_HEADER_SIZE. We don't need any memory reserved for writing out packet headers, but DirectPlay seems to corrupt itself internally and do funky things if this goes below a certain threshold. Value taken from the DX5 service provider. --- src/directplay.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/directplay.c b/src/directplay.c index 894a800..6a092f9 100644 --- a/src/directplay.c +++ b/src/directplay.c @@ -41,7 +41,13 @@ struct sp_data { }; #define DISCOVERY_SOCKET 42367 -#define API_HEADER_SIZE sizeof(struct sockaddr_ipx) + +/* Do not change this value! We don't need any memory reserved for writing out + * packet headers, but DirectPlay seems to corrupt itself internally and do + * funky things if this goes below a certain threshold. Value taken from the DX5 + * service provider. +*/ +#define API_HEADER_SIZE 20 #define CALL(func) log_printf(LOG_CALL, "directplay.c: " func);