From 14725934bb21e75c642a663e1abb969e68730dbc Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Thu, 15 Nov 2007 11:07:27 -0800 Subject: [PATCH] iphlpapi: Avoid HEAP_ZERO_MEMORY where it isn't needed. --- dlls/iphlpapi/ifenum.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/iphlpapi/ifenum.c b/dlls/iphlpapi/ifenum.c index 36c42fe0b6f..2929b701962 100644 --- a/dlls/iphlpapi/ifenum.c +++ b/dlls/iphlpapi/ifenum.c @@ -211,8 +211,9 @@ InterfaceIndexTable *getInterfaceIndexTable(void) numInterfaces++; if (numInterfaces > 1) size += (numInterfaces - 1) * sizeof(DWORD); - ret = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size); + ret = HeapAlloc(GetProcessHeap(), 0, size); if (ret) { + ret->numIndexes = 0; for (p = indexes; p && p->if_name; p++) ret->indexes[ret->numIndexes++] = p->if_index; } @@ -241,8 +242,9 @@ InterfaceIndexTable *getNonLoopbackInterfaceIndexTable(void) numInterfaces++; if (numInterfaces > 1) size += (numInterfaces - 1) * sizeof(DWORD); - ret = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size); + ret = HeapAlloc(GetProcessHeap(), 0, size); if (ret) { + ret->numIndexes = 0; for (p = indexes; p && p->if_name; p++) if (!isLoopbackInterface(fd, p->if_name)) ret->indexes[ret->numIndexes++] = p->if_index;