Commit c41e09e9 authored by Alexandre Julliard's avatar Alexandre Julliard

iphlpapi: Avoid printf format warnings.

parent d1f7d2c6
......@@ -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;
}
......
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