iphlpapi: Changed return value of NotifyAddrChange() stub and added test cases. (try 3)

Janne Hakonen joyer83 at live.fi
Tue Feb 8 12:43:59 CST 2011


This patch changes return value of NotifyAddrChange() function (which is
currently implemented as a stub) to ERROR_IO_PENDING. Handle output parameter
is also invalidated so that caller don't think that the call really succeeded.

The change corrects crashes with Anarchy Online, Awesomium and Google Chrome.

This same patch also contains test cases for the NotifyAddrChange() and
CancelIPChangeNotify() functions, with failing tests wrapped inside todo_wine.

CancelIPChangeNotify() can be used also to cancel NotifyRouteChange() calls,
but there is no test cases made for that yet.
---
 dlls/iphlpapi/iphlpapi_main.c  |    5 ++-
 dlls/iphlpapi/tests/iphlpapi.c |   87 ++++++++++++++++++++++++++++++++++++++-
 2 files changed, 88 insertions(+), 4 deletions(-)
 mode change 100644 => 100755 dlls/iphlpapi/tests/iphlpapi.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-iphlpapi-Changed-return-value-of-NotifyAddrChange-st.patch
Type: text/x-patch
Size: 6096 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110208/a3ea2127/attachment.bin>


More information about the wine-patches mailing list