You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Added patch for tests of RtlIpv6StringToAddress, RtlIpv{4,6}StringToAddressEx (by Mark Jansen).
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From cced4a3d6938fe54b949dcff24a645d6f3e8b015 Mon Sep 17 00:00:00 2001
|
||||
From 6b246b16957c097a43fa5b37399cd97a24ad045b Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Thu, 30 Oct 2014 17:41:11 +0100
|
||||
Subject: ntdll/tests: Add tests for Rtl[Decompress|Compress]Buffer and
|
||||
@@ -9,13 +9,13 @@ Subject: ntdll/tests: Add tests for Rtl[Decompress|Compress]Buffer and
|
||||
1 file changed, 740 insertions(+)
|
||||
|
||||
diff --git a/dlls/ntdll/tests/rtl.c b/dlls/ntdll/tests/rtl.c
|
||||
index e8eb04a..2f6c421 100644
|
||||
index 79c4974..0c4d684 100644
|
||||
--- a/dlls/ntdll/tests/rtl.c
|
||||
+++ b/dlls/ntdll/tests/rtl.c
|
||||
@@ -92,6 +92,10 @@ static NTSTATUS (WINAPI *pRtlIpv4StringToAddressA)(PCSTR, BOOLEAN, PCSTR *, IN_
|
||||
static NTSTATUS (WINAPI *pLdrAddRefDll)(ULONG, HMODULE);
|
||||
@@ -99,6 +99,10 @@ static NTSTATUS (WINAPI *pLdrAddRefDll)(ULONG, HMODULE);
|
||||
static NTSTATUS (WINAPI *pLdrLockLoaderLock)(ULONG, ULONG*, ULONG_PTR*);
|
||||
static NTSTATUS (WINAPI *pLdrUnlockLoaderLock)(ULONG, ULONG_PTR);
|
||||
static NTSTATUS (WINAPI *pRtlMultiByteToUnicodeN)(LPWSTR, DWORD, LPDWORD, LPCSTR, DWORD);
|
||||
+static NTSTATUS (WINAPI *pRtlGetCompressionWorkSpaceSize)(USHORT, PULONG, PULONG);
|
||||
+static NTSTATUS (WINAPI *pRtlDecompressBuffer)(USHORT, PUCHAR, ULONG, const UCHAR*, ULONG, PULONG);
|
||||
+static NTSTATUS (WINAPI *pRtlDecompressFragment)(USHORT, PUCHAR, ULONG, const UCHAR*, ULONG, ULONG, PULONG, PVOID);
|
||||
@@ -23,10 +23,10 @@ index e8eb04a..2f6c421 100644
|
||||
|
||||
static HMODULE hkernel32 = 0;
|
||||
static BOOL (WINAPI *pIsWow64Process)(HANDLE, PBOOL);
|
||||
@@ -139,6 +143,10 @@ static void InitFunctionPtrs(void)
|
||||
pLdrAddRefDll = (void *)GetProcAddress(hntdll, "LdrAddRefDll");
|
||||
@@ -152,6 +156,10 @@ static void InitFunctionPtrs(void)
|
||||
pLdrLockLoaderLock = (void *)GetProcAddress(hntdll, "LdrLockLoaderLock");
|
||||
pLdrUnlockLoaderLock = (void *)GetProcAddress(hntdll, "LdrUnlockLoaderLock");
|
||||
pRtlMultiByteToUnicodeN = (void *)GetProcAddress(hntdll, "RtlMultiByteToUnicodeN");
|
||||
+ pRtlGetCompressionWorkSpaceSize = (void *)GetProcAddress(hntdll, "RtlGetCompressionWorkSpaceSize");
|
||||
+ pRtlDecompressBuffer = (void *)GetProcAddress(hntdll, "RtlDecompressBuffer");
|
||||
+ pRtlDecompressFragment = (void *)GetProcAddress(hntdll, "RtlDecompressFragment");
|
||||
@@ -34,7 +34,7 @@ index e8eb04a..2f6c421 100644
|
||||
}
|
||||
hkernel32 = LoadLibraryA("kernel32.dll");
|
||||
ok(hkernel32 != 0, "LoadLibrary failed\n");
|
||||
@@ -1599,6 +1607,735 @@ static void test_LdrLockLoaderLock(void)
|
||||
@@ -2416,6 +2424,735 @@ static void test_LdrLockLoaderLock(void)
|
||||
pLdrUnlockLoaderLock(0, magic);
|
||||
}
|
||||
|
||||
@@ -770,7 +770,8 @@ index e8eb04a..2f6c421 100644
|
||||
START_TEST(rtl)
|
||||
{
|
||||
InitFunctionPtrs();
|
||||
@@ -1626,3 +2363,6 @@ START_TEST(rtl)
|
||||
@@ -2445,4 +3182,7 @@ START_TEST(rtl)
|
||||
test_RtlIpv6StringToAddressEx();
|
||||
test_LdrAddRefDll();
|
||||
test_LdrLockLoaderLock();
|
||||
+ test_RtlGetCompressionWorkSpaceSize();
|
||||
@@ -778,5 +779,5 @@ index e8eb04a..2f6c421 100644
|
||||
+ test_RtlCompressBuffer();
|
||||
}
|
||||
--
|
||||
2.2.1
|
||||
2.3.1
|
||||
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
Fixes: [37449] Support for RtlDecompressBuffer
|
||||
Depends: ntdll-RtlIpStringToAddress
|
||||
|
||||
Reference in New Issue
Block a user