Commit 14725934 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

iphlpapi: Avoid HEAP_ZERO_MEMORY where it isn't needed.

parent 0502de41
...@@ -211,8 +211,9 @@ InterfaceIndexTable *getInterfaceIndexTable(void) ...@@ -211,8 +211,9 @@ InterfaceIndexTable *getInterfaceIndexTable(void)
numInterfaces++; numInterfaces++;
if (numInterfaces > 1) if (numInterfaces > 1)
size += (numInterfaces - 1) * sizeof(DWORD); size += (numInterfaces - 1) * sizeof(DWORD);
ret = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size); ret = HeapAlloc(GetProcessHeap(), 0, size);
if (ret) { if (ret) {
ret->numIndexes = 0;
for (p = indexes; p && p->if_name; p++) for (p = indexes; p && p->if_name; p++)
ret->indexes[ret->numIndexes++] = p->if_index; ret->indexes[ret->numIndexes++] = p->if_index;
} }
...@@ -241,8 +242,9 @@ InterfaceIndexTable *getNonLoopbackInterfaceIndexTable(void) ...@@ -241,8 +242,9 @@ InterfaceIndexTable *getNonLoopbackInterfaceIndexTable(void)
numInterfaces++; numInterfaces++;
if (numInterfaces > 1) if (numInterfaces > 1)
size += (numInterfaces - 1) * sizeof(DWORD); size += (numInterfaces - 1) * sizeof(DWORD);
ret = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size); ret = HeapAlloc(GetProcessHeap(), 0, size);
if (ret) { if (ret) {
ret->numIndexes = 0;
for (p = indexes; p && p->if_name; p++) for (p = indexes; p && p->if_name; p++)
if (!isLoopbackInterface(fd, p->if_name)) if (!isLoopbackInterface(fd, p->if_name))
ret->indexes[ret->numIndexes++] = p->if_index; ret->indexes[ret->numIndexes++] = p->if_index;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment