Author: spetreolle
Date: Sun Jun 6 18:33:17 2010
New Revision: 47628
URL:
http://svn.reactos.org/svn/reactos?rev=47628&view=rev
Log:
Fix RtlIpv4StringToAddressW prototype and its caller in ws2_32.
Fixes crash in GetAddrInfoW on xp sp3.
Modified:
branches/aicom-network-branch/dll/win32/ws2_32/src/addrinfo.c
branches/aicom-network-branch/include/ndk/rtlfuncs.h
Modified: branches/aicom-network-branch/dll/win32/ws2_32/src/addrinfo.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/dll/win32/…
==============================================================================
--- branches/aicom-network-branch/dll/win32/ws2_32/src/addrinfo.c [iso-8859-1] (original)
+++ branches/aicom-network-branch/dll/win32/ws2_32/src/addrinfo.c [iso-8859-1] Sun Jun 6
18:33:17 2010
@@ -91,7 +91,7 @@
LPWSTR Ip = 0;
/* Do the conversion, don't accept wildcard */
- RtlIpv4StringToAddressW((LPWSTR)AddressString, 0, Ip, (IN_ADDR *)&Address);
+ RtlIpv4StringToAddressW((LPWSTR)AddressString, 0, &Ip, (IN_ADDR *)&Address);
/* Return the address and success */
*pAddress = Address;
Modified: branches/aicom-network-branch/include/ndk/rtlfuncs.h
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/include/nd…
==============================================================================
--- branches/aicom-network-branch/include/ndk/rtlfuncs.h [iso-8859-1] (original)
+++ branches/aicom-network-branch/include/ndk/rtlfuncs.h [iso-8859-1] Sun Jun 6 18:33:17
2010
@@ -3183,9 +3183,9 @@
NTSTATUS
NTAPI
RtlIpv4StringToAddressW(
- IN PWCHAR String,
- IN UCHAR Strict,
- OUT PWCHAR Terminator,
+ IN PCWSTR String,
+ IN BOOLEAN Strict,
+ OUT LPWSTR *Terminator,
OUT struct in_addr *Addr
);