From 220a0130dd67d201660d2a08e438e05439fbe9d0 Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Wed, 25 Dec 2013 11:48:08 -0800 Subject: [PATCH] - bugfixes for msvc compile --- source/shared_lib/sources/platform/posix/socket.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/shared_lib/sources/platform/posix/socket.cpp b/source/shared_lib/sources/platform/posix/socket.cpp index 15f97a10..f57755e4 100644 --- a/source/shared_lib/sources/platform/posix/socket.cpp +++ b/source/shared_lib/sources/platform/posix/socket.cpp @@ -546,10 +546,10 @@ string getNetworkInterfaceBroadcastAddress(string ipAddress) // Adapted from example code at http://msdn2.microsoft.com/en-us/library/aa365917.aspx // Now get Windows' IPv4 addresses table. Once again, we gotta call GetIpAddrTable() // multiple times in order to deal with potential race conditions properly. - PMIB_IPADDRTABLE * ipTable = NULL; + PMIB_IPADDRTABLE ipTable = NULL; // Before calling AddIPAddress we use GetIpAddrTable to get // an adapter to which we can add the IP. - ipTable = (MIB_IPADDRTABLE *) MALLOC(sizeof (MIB_IPADDRTABLE)); + ipTable = (PMIB_IPADDRTABLE) malloc(sizeof (MIB_IPADDRTABLE)); ipTable->dwNumEntries = 0; { @@ -642,7 +642,7 @@ string getNetworkInterfaceBroadcastAddress(string ipAddress) } } - if(AdapterInfo) free(pAdapterInfo); + if(pAdapterInfo) free(pAdapterInfo); if(ipTable) free(ipTable); } #else