Fix RtlIpv4StringToAddressW prototype and its caller in ws2_32.
authorSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 6 Jun 2010 16:33:17 +0000 (16:33 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 6 Jun 2010 16:33:17 +0000 (16:33 +0000)
Fixes crash in GetAddrInfoW on xp sp3.

svn path=/branches/aicom-network-branch/; revision=47628

dll/win32/ws2_32/src/addrinfo.c
include/ndk/rtlfuncs.h

index cfdb4f1..7bc55ca 100644 (file)
@@ -91,7 +91,7 @@ ParseV4Address(IN PCWSTR AddressString,
     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;
index 5db3fc3..5365486 100644 (file)
@@ -3183,9 +3183,9 @@ NTSYSAPI
 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
 );