Module: wine Branch: master Commit: c41e09e9a0876b5710d1fbb6e2872b6c2c6dd214 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c41e09e9a0876b5710d1fbb6e2... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Feb 5 22:04:29 2007 +0100 iphlpapi: Avoid printf format warnings. --- dlls/iphlpapi/ipstats.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c index f5b1149..b80cf61 100644 --- a/dlls/iphlpapi/ipstats.c +++ b/dlls/iphlpapi/ipstats.c @@ -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 buf = HeapAlloc (GetProcessHeap (), 0, needed); if (!buf) { - ERR ("HeapAlloc of %ld failed!\n", needed); HeapFree (GetProcessHeap (), 0, table); return ERROR_OUTOFMEMORY; }