Signed-off-by: Sven Baars sven.wine@gmail.com --- dlls/ws2_32/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index 640726d01e..cd7e11b453 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -6272,7 +6272,7 @@ static struct WS_hostent* WS_get_local_ips( char *hostname ) return NULL; adapters = HeapAlloc(GetProcessHeap(), 0, adap_size); routes = HeapAlloc(GetProcessHeap(), 0, route_size); - route_addrs = HeapAlloc(GetProcessHeap(), 0, 0); /* HeapReAlloc doesn't work on NULL */ + route_addrs = HeapAlloc(GetProcessHeap(), 0, 1); /* HeapReAlloc doesn't work on NULL */ if (adapters == NULL || routes == NULL || route_addrs == NULL) goto cleanup; /* Obtain the adapter list and the full routing table */