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
Disabled ntdll-Syscall_Wrappers patchset.
There are easier ways to workaround this bug in the meantime. Also, the idea is not really feasible because its impossible to implement proper syscall wrappers on 64-bit.
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
From d27ca5000c0fc51c6df0ec6751372f98704508dd Mon Sep 17 00:00:00 2001
|
||||
From 11aafdc465774d1b89836aa681f4af8b2bc85407 Mon Sep 17 00:00:00 2001
|
||||
From: Dmitry Timoshkov <dmitry@baikal.ru>
|
||||
Date: Thu, 16 Oct 2014 23:24:37 +0200
|
||||
Subject: ntdll: Implement NtQuerySection. (try 2)
|
||||
|
||||
Some small modifications by Sebastian Lackner <sebastian@fds-team.de>
|
||||
---
|
||||
dlls/ntdll/nt.c | 20 --------
|
||||
dlls/ntdll/nt.c | 19 --------
|
||||
dlls/ntdll/ntdll.spec | 4 +-
|
||||
dlls/ntdll/virtual.c | 96 +++++++++++++++++++++++++++++++++++++
|
||||
dlls/ntdll/virtual.c | 95 +++++++++++++++++++++++++++++++++++++
|
||||
dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +-
|
||||
server/mapping.c | 42 ++++++++++++++++
|
||||
server/protocol.def | 7 +++
|
||||
6 files changed, 148 insertions(+), 23 deletions(-)
|
||||
6 files changed, 147 insertions(+), 22 deletions(-)
|
||||
|
||||
diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
|
||||
index 02166e8..3ee5a52 100644
|
||||
index 47d7b31..f4d77a4 100644
|
||||
--- a/dlls/ntdll/nt.c
|
||||
+++ b/dlls/ntdll/nt.c
|
||||
@@ -656,26 +656,6 @@ NTSTATUS WINAPI SYSCALL(NtPrivilegeCheck)(
|
||||
@@ -646,25 +646,6 @@ NTSTATUS WINAPI NtPrivilegeCheck(
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -27,8 +27,7 @@ index 02166e8..3ee5a52 100644
|
||||
-/******************************************************************************
|
||||
- * NtQuerySection [NTDLL.@]
|
||||
- */
|
||||
-DEFINE_SYSCALL_ENTRYPOINT( NtQuerySection, 5 );
|
||||
-NTSTATUS WINAPI SYSCALL(NtQuerySection)(
|
||||
-NTSTATUS WINAPI NtQuerySection(
|
||||
- IN HANDLE SectionHandle,
|
||||
- IN SECTION_INFORMATION_CLASS SectionInformationClass,
|
||||
- OUT PVOID SectionInformation,
|
||||
@@ -45,10 +44,10 @@ index 02166e8..3ee5a52 100644
|
||||
*/
|
||||
|
||||
diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec
|
||||
index d3cd489..44bffc5 100644
|
||||
index 0a68144..c69934f 100644
|
||||
--- a/dlls/ntdll/ntdll.spec
|
||||
+++ b/dlls/ntdll/ntdll.spec
|
||||
@@ -267,7 +267,7 @@
|
||||
@@ -269,7 +269,7 @@
|
||||
@ stdcall NtQueryPerformanceCounter(ptr ptr)
|
||||
# @ stub NtQueryPortInformationProcess
|
||||
# @ stub NtQueryQuotaInformationFile
|
||||
@@ -57,7 +56,7 @@ index d3cd489..44bffc5 100644
|
||||
@ stdcall NtQuerySecurityObject (long long long long long)
|
||||
@ stdcall NtQuerySemaphore (long long ptr long ptr)
|
||||
@ stdcall NtQuerySymbolicLinkObject(long ptr ptr)
|
||||
@@ -1188,7 +1188,7 @@
|
||||
@@ -1190,7 +1190,7 @@
|
||||
@ stdcall ZwQueryPerformanceCounter(ptr ptr) NtQueryPerformanceCounter
|
||||
# @ stub ZwQueryPortInformationProcess
|
||||
# @ stub ZwQueryQuotaInformationFile
|
||||
@@ -67,18 +66,17 @@ index d3cd489..44bffc5 100644
|
||||
@ stdcall ZwQuerySemaphore(long long ptr long ptr) NtQuerySemaphore
|
||||
@ stdcall ZwQuerySymbolicLinkObject(long ptr ptr) NtQuerySymbolicLinkObject
|
||||
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
|
||||
index 16a5a1b..5a8d85c 100644
|
||||
index 5c43d26..4f0e711 100644
|
||||
--- a/dlls/ntdll/virtual.c
|
||||
+++ b/dlls/ntdll/virtual.c
|
||||
@@ -2525,6 +2525,102 @@ NTSTATUS WINAPI SYSCALL(NtOpenSection)( HANDLE *handle, ACCESS_MASK access, cons
|
||||
@@ -2517,6 +2517,101 @@ NTSTATUS WINAPI NtOpenSection( HANDLE *handle, ACCESS_MASK access, const OBJECT_
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
+ * NtQuerySection (NTDLL.@)
|
||||
+ */
|
||||
+DEFINE_SYSCALL_ENTRYPOINT( NtQuerySection, 5 );
|
||||
+NTSTATUS WINAPI SYSCALL(NtQuerySection)( HANDLE handle, SECTION_INFORMATION_CLASS info_class,
|
||||
+ PVOID buffer, ULONG len, PULONG ret_len )
|
||||
+NTSTATUS WINAPI NtQuerySection( HANDLE handle, SECTION_INFORMATION_CLASS info_class,
|
||||
+ PVOID buffer, ULONG len, PULONG ret_len )
|
||||
+{
|
||||
+ HANDLE dup_mapping, shared_file;
|
||||
+ unsigned protect;
|
||||
@@ -174,7 +172,7 @@ index 16a5a1b..5a8d85c 100644
|
||||
* ZwMapViewOfSection (NTDLL.@)
|
||||
*/
|
||||
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
|
||||
index 1319ada..eb4aad2 100644
|
||||
index b688a3f..0c94d8e 100644
|
||||
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
|
||||
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
|
||||
@@ -1351,7 +1351,7 @@
|
||||
@@ -290,5 +288,5 @@ index a5a45eb..fdc07a3 100644
|
||||
obj_handle_t shared_file; /* shared mapping file handle */
|
||||
@END
|
||||
--
|
||||
2.7.1
|
||||
2.8.0
|
||||
|
||||
|
@@ -1,2 +1,2 @@
|
||||
Fixes: [37338] Support for NtQuerySection
|
||||
Depends: ntdll-Syscall_Wrappers
|
||||
# Depends: ntdll-Syscall_Wrappers
|
||||
|
Reference in New Issue
Block a user