mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
iphlpapi: Avoid printf format warnings.
This commit is contained in:
parent
d1f7d2c683
commit
c41e09e9a0
1 changed files with 1 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue