mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Merge pull request #11726 from SimpleTease/netplay_1
net_ifinfo: crashfix (Windows)
This commit is contained in:
commit
5fb24737d0
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ bool net_ifinfo_new(net_ifinfo_t *list)
|
|||
PIP_ADAPTER_ADDRESSES adapter_addresses = NULL, aa = NULL;
|
||||
PIP_ADAPTER_UNICAST_ADDRESS ua = NULL;
|
||||
#ifdef _WIN32_WINNT_WINXP
|
||||
DWORD size;
|
||||
DWORD size = 0;
|
||||
DWORD rv = GetAdaptersAddresses(AF_UNSPEC, GAA_FLAG_INCLUDE_PREFIX, NULL, NULL, &size);
|
||||
|
||||
adapter_addresses = (PIP_ADAPTER_ADDRESSES)malloc(size);
|
||||
|
|
Loading…
Add table
Reference in a new issue