iphlpapi: Avoid printf format warnings.

This commit is contained in:
Alexandre Julliard 2007-02-05 22:04:29 +01:00
parent d1f7d2c683
commit c41e09e9a0

View file

@ -604,11 +604,7 @@ DWORD getNumRoutes(void)
}
buf = HeapAlloc (GetProcessHeap (), 0, needed);
if (!buf)
{
ERR ("HeapAlloc of %ld failed!\n", needed);
return 0;
}
if (!buf) return 0;
if (sysctl (mib, 6, buf, &needed, NULL, 0) < 0)
{
@ -673,7 +669,6 @@ DWORD getRouteTable(PMIB_IPFORWARDTABLE *ppIpForwardTable, HANDLE heap,
buf = HeapAlloc (GetProcessHeap (), 0, needed);
if (!buf)
{
ERR ("HeapAlloc of %ld failed!\n", needed);
HeapFree (GetProcessHeap (), 0, table);
return ERROR_OUTOFMEMORY;
}