Skip to content

Commit bb72205

Browse files
committed
Fix RtlIpv4StringToAddressW prototype and its caller in ws2_32.
Fixes crash in GetAddrInfoW on xp sp3. svn path=/branches/aicom-network-branch/; revision=47628
1 parent 343454b commit bb72205

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dll/win32/ws2_32/src/addrinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ ParseV4Address(IN PCWSTR AddressString,
9191
LPWSTR Ip = 0;
9292

9393
/* Do the conversion, don't accept wildcard */
94-
RtlIpv4StringToAddressW((LPWSTR)AddressString, 0, Ip, (IN_ADDR *)&Address);
94+
RtlIpv4StringToAddressW((LPWSTR)AddressString, 0, &Ip, (IN_ADDR *)&Address);
9595

9696
/* Return the address and success */
9797
*pAddress = Address;

include/ndk/rtlfuncs.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3183,9 +3183,9 @@ NTSYSAPI
31833183
NTSTATUS
31843184
NTAPI
31853185
RtlIpv4StringToAddressW(
3186-
IN PWCHAR String,
3187-
IN UCHAR Strict,
3188-
OUT PWCHAR Terminator,
3186+
IN PCWSTR String,
3187+
IN BOOLEAN Strict,
3188+
OUT LPWSTR *Terminator,
31893189
OUT struct in_addr *Addr
31903190
);
31913191

0 commit comments

Comments
 (0)