Juan Lang : iphlpapi: Clean up memory allocation.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jan 24 06:45:22 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 5cd6b34259f6da65bd221a069e9fa2aff592979d
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=5cd6b34259f6da65bd221a069e9fa2aff592979d
Author: Juan Lang <juan_lang at yahoo.com>
Date: Tue Jan 24 12:18:50 2006 +0100
iphlpapi: Clean up memory allocation.
- pass heap to allocate from directly to helper functions, instead of
unnecessarily copying returned data
- use public types rather than internal ones
- make sure GetBestRoute doesn't return bogus matches
---
dlls/iphlpapi/ifenum.c | 90 +++++++
dlls/iphlpapi/ifenum.h | 7 +
dlls/iphlpapi/iphlpapi_main.c | 419 +++++++++++++--------------------
dlls/iphlpapi/ipstats.c | 527 ++++++++++++++++++++++++-----------------
dlls/iphlpapi/ipstats.h | 49 +---
5 files changed, 587 insertions(+), 505 deletions(-)
Diff: http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=5cd6b34259f6da65bd221a069e9fa2aff592979d
More information about the wine-cvs
mailing list