2019-02-28 20:32:39 -08:00
|
|
|
From 356adef44cc8267ae73cbbb6bc250ac8bc993e75 Mon Sep 17 00:00:00 2001
|
2019-02-19 16:59:41 -08:00
|
|
|
From: Zebediah Figura <z.figura12@gmail.com>
|
|
|
|
Date: Tue, 29 Jan 2019 21:44:23 -0600
|
|
|
|
Subject: [PATCH 07/13] ntoskrnl.exe: Implement ExReleaseResourceLite().
|
|
|
|
|
|
|
|
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
|
|
|
|
---
|
2019-02-28 20:32:39 -08:00
|
|
|
dlls/ntoskrnl.exe/ntoskrnl.c | 8 --------
|
|
|
|
dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +-
|
|
|
|
dlls/ntoskrnl.exe/sync.c | 9 +++++++++
|
|
|
|
3 files changed, 10 insertions(+), 9 deletions(-)
|
2019-02-19 16:59:41 -08:00
|
|
|
|
|
|
|
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
|
2019-02-28 20:32:39 -08:00
|
|
|
index e2a838cc..d310b7e4 100644
|
2019-02-19 16:59:41 -08:00
|
|
|
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
|
|
|
|
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
|
2019-02-28 20:32:39 -08:00
|
|
|
@@ -4048,14 +4048,6 @@ NTSTATUS WINAPI DbgQueryDebugFilterState(ULONG component, ULONG level)
|
2019-02-19 16:59:41 -08:00
|
|
|
return STATUS_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
-/*********************************************************************
|
|
|
|
- * ExReleaseResourceLite (NTOSKRNL.@)
|
|
|
|
- */
|
|
|
|
-void WINAPI ExReleaseResourceLite(PERESOURCE resource)
|
|
|
|
-{
|
|
|
|
- FIXME("stub: %p\n", resource);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
/*********************************************************************
|
|
|
|
* PsGetProcessWow64Process (NTOSKRNL.@)
|
|
|
|
*/
|
|
|
|
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
|
2019-02-28 20:32:39 -08:00
|
|
|
index ea543025..f57352f2 100644
|
2019-02-19 16:59:41 -08:00
|
|
|
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
|
|
|
|
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
|
|
|
|
@@ -9,7 +9,7 @@
|
2019-02-28 20:32:39 -08:00
|
|
|
@ stdcall -fastcall -arch=i386 ExInterlockedPushEntrySList (ptr ptr ptr) NTOSKRNL_ExInterlockedPushEntrySList
|
2019-02-19 16:59:41 -08:00
|
|
|
@ stub ExReInitializeRundownProtection
|
2019-02-28 20:32:39 -08:00
|
|
|
@ stdcall -fastcall ExReleaseFastMutexUnsafe(ptr)
|
2019-02-19 16:59:41 -08:00
|
|
|
-@ stdcall ExReleaseResourceLite(ptr)
|
2019-02-28 20:32:39 -08:00
|
|
|
+@ stdcall -fastcall ExReleaseResourceLite(ptr)
|
2019-02-19 16:59:41 -08:00
|
|
|
@ stub ExReleaseRundownProtection
|
|
|
|
@ stub ExReleaseRundownProtectionEx
|
|
|
|
@ stub ExRundownCompleted
|
|
|
|
diff --git a/dlls/ntoskrnl.exe/sync.c b/dlls/ntoskrnl.exe/sync.c
|
2019-02-28 20:32:39 -08:00
|
|
|
index 540093d7..02f96c3c 100644
|
2019-02-19 16:59:41 -08:00
|
|
|
--- a/dlls/ntoskrnl.exe/sync.c
|
|
|
|
+++ b/dlls/ntoskrnl.exe/sync.c
|
2019-02-28 20:32:39 -08:00
|
|
|
@@ -986,3 +986,12 @@ void WINAPI ExReleaseResourceForThreadLite( ERESOURCE *resource, ERESOURCE_THREA
|
2019-02-19 16:59:41 -08:00
|
|
|
|
|
|
|
KeReleaseSpinLock( &resource->SpinLock, irql );
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+/***********************************************************************
|
|
|
|
+ * ExReleaseResourceLite (NTOSKRNL.EXE.@)
|
|
|
|
+ */
|
2019-02-28 20:32:39 -08:00
|
|
|
+DEFINE_FASTCALL1_WRAPPER( ExReleaseResourceLite )
|
2019-02-19 16:59:41 -08:00
|
|
|
+void WINAPI ExReleaseResourceLite( ERESOURCE *resource )
|
|
|
|
+{
|
|
|
|
+ ExReleaseResourceForThreadLite( resource, (ERESOURCE_THREAD)KeGetCurrentThread() );
|
|
|
|
+}
|
|
|
|
--
|
|
|
|
2.20.1
|
|
|
|
|