diff --git a/patches/ntdll-Pipe_SpecialCharacters/0001-ntdll-Allow-special-characters-in-pipe-names.patch b/patches/ntdll-Pipe_SpecialCharacters/0001-ntdll-Allow-special-characters-in-pipe-names.patch index db06fd41..02d56a91 100644 --- a/patches/ntdll-Pipe_SpecialCharacters/0001-ntdll-Allow-special-characters-in-pipe-names.patch +++ b/patches/ntdll-Pipe_SpecialCharacters/0001-ntdll-Allow-special-characters-in-pipe-names.patch @@ -1,7 +1,7 @@ -From d5092cdd3d4df589f50b52c75bd50127c59f545d Mon Sep 17 00:00:00 2001 +From 6250b3812eea73306a90ac68d329f16cb4436e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Sun, 27 Jul 2014 03:35:42 +0200 -Subject: ntdll: Allow special characters in pipe names. +Subject: [PATCH] ntdll: Allow special characters in pipe names. Based on patch by Valentyn Pavliuchenko. --- @@ -10,10 +10,10 @@ Based on patch by Valentyn Pavliuchenko. 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/dlls/kernel32/tests/pipe.c b/dlls/kernel32/tests/pipe.c -index f7c7531..04de950 100644 +index 22d120f..8e5c07f 100644 --- a/dlls/kernel32/tests/pipe.c +++ b/dlls/kernel32/tests/pipe.c -@@ -29,6 +29,7 @@ +@@ -30,6 +30,7 @@ #include "wine/test.h" #define PIPENAME "\\\\.\\PiPe\\tests_pipe.c" @@ -21,7 +21,7 @@ index f7c7531..04de950 100644 #define NB_SERVER_LOOPS 8 -@@ -335,6 +336,15 @@ static void test_CreateNamedPipe(int pipemode) +@@ -627,6 +628,15 @@ static void test_CreateNamedPipe(int pipemode) ok(CloseHandle(hnp), "CloseHandle\n"); @@ -34,14 +34,14 @@ index f7c7531..04de950 100644 + ok(hnp != INVALID_HANDLE_VALUE, "CreateNamedPipe with special characters failed\n"); + ok(CloseHandle(hnp), "CloseHandle\n"); + - trace("test_CreateNamedPipe returning\n"); + if (winetest_debug > 1) trace("test_CreateNamedPipe returning\n"); } diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c -index 04a5b75..6558958 100644 +index 3b76f9b..4206584 100644 --- a/dlls/ntdll/directory.c +++ b/dlls/ntdll/directory.c -@@ -3009,6 +3009,7 @@ NTSTATUS CDECL wine_nt_to_unix_file_name( const UNICODE_STRING *nameW, ANSI_STRI +@@ -2825,6 +2825,7 @@ NTSTATUS CDECL wine_nt_to_unix_file_name( const UNICODE_STRING *nameW, ANSI_STRI UINT disposition, BOOLEAN check_case ) { static const WCHAR unixW[] = {'u','n','i','x'}; @@ -49,7 +49,7 @@ index 04a5b75..6558958 100644 static const WCHAR invalid_charsW[] = { INVALID_NT_CHARS, 0 }; NTSTATUS status = STATUS_SUCCESS; -@@ -3019,6 +3020,7 @@ NTSTATUS CDECL wine_nt_to_unix_file_name( const UNICODE_STRING *nameW, ANSI_STRI +@@ -2835,6 +2836,7 @@ NTSTATUS CDECL wine_nt_to_unix_file_name( const UNICODE_STRING *nameW, ANSI_STRI int pos, ret, name_len, unix_len, prefix_len, used_default; WCHAR prefix[MAX_DIR_ENTRY_LEN]; BOOLEAN is_unix = FALSE; @@ -57,7 +57,7 @@ index 04a5b75..6558958 100644 name = nameW->Buffer; name_len = nameW->Length / sizeof(WCHAR); -@@ -3050,13 +3052,17 @@ NTSTATUS CDECL wine_nt_to_unix_file_name( const UNICODE_STRING *nameW, ANSI_STRI +@@ -2868,13 +2870,17 @@ NTSTATUS CDECL wine_nt_to_unix_file_name( const UNICODE_STRING *nameW, ANSI_STRI name += prefix_len; name_len -= prefix_len; @@ -80,5 +80,5 @@ index 04a5b75..6558958 100644 else { -- -1.8.3.2 +2.7.4