Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
Rebase against 2ae0574d8eac19db501a79ce2597f2fe30a770bd.
Browse files Browse the repository at this point in the history
  • Loading branch information
slackner committed Sep 29, 2017
1 parent d654c8f commit f7fdbd9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 82 deletions.

This file was deleted.

@@ -1,19 +1,19 @@
From 6f149e702d91a7aeb1e541bb13bdde9993ce69d4 Mon Sep 17 00:00:00 2001
From 3d107f1c34d56ee2a7fbd2ed25e6198e4f8aebe4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Thu, 21 Jan 2016 00:34:27 +0100
Subject: ntdll: Add stub for RtlIpv6StringToAddressExW.

---
dlls/ntdll/ntdll.spec | 2 +-
dlls/ntdll/rtl.c | 14 ++++++++++++++
dlls/ntdll/rtl.c | 11 +++++++++++
dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +-
3 files changed, 16 insertions(+), 2 deletions(-)
3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec
index 9712b3a..24057ad 100644
index 5e27f0af952..7c12f06aa5a 100644
--- a/dlls/ntdll/ntdll.spec
+++ b/dlls/ntdll/ntdll.spec
@@ -722,7 +722,7 @@
@@ -733,7 +733,7 @@
# @ stub RtlIpv6AddressToStringW
# @ stub RtlIpv6StringToAddressA
# @ stub RtlIpv6StringToAddressExA
Expand All @@ -23,7 +23,7 @@ index 9712b3a..24057ad 100644
@ stdcall RtlIsActivationContextActive(ptr)
@ stdcall RtlIsCriticalSectionLocked(ptr)
diff --git a/dlls/ntdll/rtl.c b/dlls/ntdll/rtl.c
index ec5c999b..262cc86 100644
index 8630ddecdf2..b9b99b24b1c 100644
--- a/dlls/ntdll/rtl.c
+++ b/dlls/ntdll/rtl.c
@@ -45,6 +45,7 @@
Expand All @@ -34,20 +34,11 @@ index ec5c999b..262cc86 100644
#include "ddk/ntddk.h"

WINE_DEFAULT_DEBUG_CHANNEL(ntdll);
@@ -882,6 +883,9 @@ void WINAPI RtlCopyLuidAndAttributesArray(
for (i = 0; i < Count; i++) Dest[i] = Src[i];
@@ -902,6 +903,16 @@ NTSTATUS WINAPI RtlIpv4StringToAddressW(const WCHAR *str, BOOLEAN strict, const
return STATUS_NOT_IMPLEMENTED;
}

+/***********************************************************************
+ * RtlIpv4StringToAddressExW [NTDLL.@]
+ */
NTSTATUS WINAPI RtlIpv4StringToAddressExW(LPCWSTR str, BOOLEAN strict, IN_ADDR *address, PUSHORT port)
{
FIXME("(%s, %u, %p, %p): stub\n", debugstr_w(str), strict, address, port);
@@ -890,6 +894,16 @@ NTSTATUS WINAPI RtlIpv4StringToAddressExW(LPCWSTR str, BOOLEAN strict, IN_ADDR *
}

/***********************************************************************
+ * RtlIpv6StringToAddressExW [NTDLL.@]
+ */
+NTSTATUS NTAPI RtlIpv6StringToAddressExW(LPCWSTR str, IN6_ADDR *address, PULONG scope, PUSHORT port)
Expand All @@ -57,15 +48,14 @@ index ec5c999b..262cc86 100644
+ return STATUS_INVALID_PARAMETER;
+}
+
+/***********************************************************************
/***********************************************************************
* RtlIpv4AddressToStringExW [NTDLL.@]
*
* Convert the given ipv4 address and optional the port to a string
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
index 7ec49f1..526c707 100644
index 69f605922e4..c50073b7aa5 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
@@ -1083,7 +1083,7 @@
@@ -1088,7 +1088,7 @@
@ stub RtlIpv6AddressToStringW
@ stub RtlIpv6StringToAddressA
@ stub RtlIpv6StringToAddressExA
Expand All @@ -75,5 +65,5 @@ index 7ec49f1..526c707 100644
@ stub RtlIsGenericTableEmpty
@ stub RtlIsGenericTableEmptyAvl
--
2.6.4
2.14.1

4 changes: 1 addition & 3 deletions patches/patchinstall.sh
Expand Up @@ -52,7 +52,7 @@ usage()
# Get the upstream commit sha
upstream_commit()
{
echo "40166848a7944383a4cfdaac9b18bd03fbb2b4f9"
echo "2ae0574d8eac19db501a79ce2597f2fe30a770bd"
}

# Show version information
Expand Down Expand Up @@ -6788,10 +6788,8 @@ fi
# | * dlls/ntdll/ntdll.spec, dlls/ntdll/rtl.c, dlls/ntoskrnl.exe/ntoskrnl.exe.spec
# |
if test "$enable_ntdll_RtlIpStringToAddress_Stubs" -eq 1; then
patch_apply ntdll-RtlIpStringToAddress_Stubs/0001-ntdll-Fix-parameters-for-RtlIpv4StringToAddressExW-s.patch
patch_apply ntdll-RtlIpStringToAddress_Stubs/0002-ntdll-Add-stub-for-RtlIpv6StringToAddressExW.patch
(
printf '%s\n' '+ { "Michael Müller", "ntdll: Fix parameters for RtlIpv4StringToAddressExW stub.", 1 },';
printf '%s\n' '+ { "Michael Müller", "ntdll: Add stub for RtlIpv6StringToAddressExW.", 1 },';
) >> "$patchlist"
fi
Expand Down

0 comments on commit f7fdbd9

Please sign in to comment.