mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
fixed windows compilation
This commit is contained in:
parent
4916496008
commit
b56881e6d9
2 changed files with 2 additions and 2 deletions
|
@ -290,7 +290,7 @@ bool getLocalAddresses(std::list<sockaddr_storage> & addrs)
|
|||
#ifdef WINDOWS_SYS
|
||||
// Seems strange to me but M$ documentation suggests to allocate this way...
|
||||
DWORD bf_size = 16000;
|
||||
IP_ADAPTER_ADDRESSES* adapter_addresses = (IP_ADAPTER_ADDRESSES*) rs_safe_malloc(bf_size);
|
||||
IP_ADAPTER_ADDRESSES* adapter_addresses = (IP_ADAPTER_ADDRESSES*) rs_malloc(bf_size);
|
||||
|
||||
if(adapter_addresses == NULL)
|
||||
return false ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue