diff --git a/lib/framework/exceptionhandler.c b/lib/framework/exceptionhandler.c index 26d9fd9aa..f7513ec1e 100644 --- a/lib/framework/exceptionhandler.c +++ b/lib/framework/exceptionhandler.c @@ -581,6 +581,7 @@ static void posixExceptionHandler(int signum, siginfo_t * siginfo, WZ_DECL_UNUSE */ void setupExceptionHandler(const char * programCommand) { + return; #if defined(WZ_OS_WIN) SetUnhandledExceptionFilter(windowsExceptionHandler); #elif defined(WZ_OS_UNIX) && !defined(WZ_OS_MAC) diff --git a/lib/netplay/netplay.c b/lib/netplay/netplay.c index 3600e672a..180069e8f 100644 --- a/lib/netplay/netplay.c +++ b/lib/netplay/netplay.c @@ -119,7 +119,7 @@ static SDLNet_SocketSet tmp_socket_set = NULL; static char* hostname; static NETSTATS nStats = { 0, 0, 0, 0 }; static NET_PLAYER players[MAX_CONNECTED_PLAYERS]; -static int32_t NetGameFlags[4]; +static int32_t NetGameFlags[4] = { 0 }; // *********** Socket with buffer that read NETMSGs ****************** @@ -389,7 +389,7 @@ BOOL NETsetGameFlags(UDWORD flag, SDWORD value) return TRUE; } - if (flag < 1 || flag > 4) + if (flag > 0 && flag < 5) { return NetGameFlags[flag-1] = value; }