Added patch to implement support for SetFileCompletionNotificationModes.

This commit is contained in:
Sebastian Lackner
2016-10-15 19:59:16 +02:00
parent f176092a54
commit dd324a1b34
6 changed files with 338 additions and 41 deletions

View File

@@ -1,4 +1,4 @@
From deef0e7d7fc154c8c10a07b5471775a639ac8596 Mon Sep 17 00:00:00 2001
From c45a1755627f278008043315b5ef9a05b796cbec Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Sat, 6 Jun 2015 07:03:33 +0800
Subject: ntdll: Improve stub of NtQueryEaFile.
@@ -10,10 +10,10 @@ Based on a patch by Qian Hong.
2 files changed, 98 insertions(+), 4 deletions(-)
diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index b3bd9d6..d949388 100644
index 14715b1..ae3219a 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -3319,14 +3319,25 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile( HANDLE handle, PIO_STATUS_BLOCK io
@@ -3367,14 +3367,25 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile( HANDLE handle, PIO_STATUS_BLOCK io
* Success: 0. Atrributes read into buffer
* Failure: An NTSTATUS error code describing the error.
*/
@@ -44,7 +44,7 @@ index b3bd9d6..d949388 100644
diff --git a/dlls/ntdll/tests/file.c b/dlls/ntdll/tests/file.c
index 649b6b4..fcbf8df 100644
index dfaf4a5..1dbaf30 100644
--- a/dlls/ntdll/tests/file.c
+++ b/dlls/ntdll/tests/file.c
@@ -79,6 +79,7 @@ static NTSTATUS (WINAPI *pNtQueryDirectoryFile)(HANDLE,HANDLE,PIO_APC_ROUTINE,PV
@@ -55,7 +55,7 @@ index 649b6b4..fcbf8df 100644
static inline BOOL is_signaled( HANDLE obj )
{
@@ -4159,6 +4160,86 @@ static void test_read_write(void)
@@ -4288,6 +4289,86 @@ static void test_read_write(void)
CloseHandle(hfile);
}
@@ -142,7 +142,7 @@ index 649b6b4..fcbf8df 100644
START_TEST(file)
{
HMODULE hkernel32 = GetModuleHandleA("kernel32.dll");
@@ -4195,6 +4276,7 @@ START_TEST(file)
@@ -4324,6 +4405,7 @@ START_TEST(file)
pNtQueryDirectoryFile = (void *)GetProcAddress(hntdll, "NtQueryDirectoryFile");
pNtQueryVolumeInformationFile = (void *)GetProcAddress(hntdll, "NtQueryVolumeInformationFile");
pNtQueryFullAttributesFile = (void *)GetProcAddress(hntdll, "NtQueryFullAttributesFile");
@@ -150,12 +150,12 @@ index 649b6b4..fcbf8df 100644
test_read_write();
test_NtCreateFile();
@@ -4216,4 +4298,5 @@ START_TEST(file)
test_file_disposition_information();
@@ -4346,4 +4428,5 @@ START_TEST(file)
test_file_completion_information();
test_query_volume_information_file();
test_query_attribute_information_file();
+ test_query_ea();
}
--
2.8.0
2.9.0

View File

@@ -1,2 +1,3 @@
Fixes: Improve stub for NtQueryEaFile
# Depends: ntdll-Syscall_Wrappers
Depends: kernel32-SetFileCompletionNotificationModes