From bcf188ee54497070e2815d46aaff3bdd2f9d4171 Mon Sep 17 00:00:00 2001 From: Tyler Jaacks Date: Thu, 5 Sep 2024 19:07:51 -0500 Subject: [PATCH] Added BOOL DeleteSynchronizationBarrier --- dlls/kernelx/Exports.def | 2 +- dlls/kernelx/kernelx.cpp | 5 +++++ dlls/kernelx/kernelx.h | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/dlls/kernelx/Exports.def b/dlls/kernelx/Exports.def index 1fe090b..e759f57 100644 --- a/dlls/kernelx/Exports.def +++ b/dlls/kernelx/Exports.def @@ -24,7 +24,7 @@ EXPORTS DecodeSystemPointer = NTDLL.RtlDecodeSystemPointer @73 DeleteCriticalSection = NTDLL.RtlDeleteCriticalSection @74 DeleteFileW = DeleteFileW_X @77 - DeleteSynchronizationBarrier = NTDLL.RtlDeleteBarrier @79 + DeleteSynchronizationBarrier = DeleteSynchronizationBarrier_X @79 DeviceIoControl = DeviceIoControl_X @80 DisableThreadLibraryCalls = DisableThreadLibraryCalls_X @81 DisassociateCurrentThreadFromCallback = NTDLL.TpDisassociateCallback @82 diff --git a/dlls/kernelx/kernelx.cpp b/dlls/kernelx/kernelx.cpp index 732a800..04b99d5 100644 --- a/dlls/kernelx/kernelx.cpp +++ b/dlls/kernelx/kernelx.cpp @@ -308,6 +308,11 @@ BOOL DeleteFileW_X(LPCWSTR lpFileName) return DeleteFileW(lpFileName); } +BOOL DeleteSynchronizationBarrier_X(LPSYNCHRONIZATION_BARRIER lpBarrier) +{ + return DeleteSynchronizationBarrier(lpBarrier); +} + void DebugBreak_X() { return DebugBreak(); diff --git a/dlls/kernelx/kernelx.h b/dlls/kernelx/kernelx.h index 9ebef1f..e361b06 100644 --- a/dlls/kernelx/kernelx.h +++ b/dlls/kernelx/kernelx.h @@ -125,8 +125,6 @@ extern "C" void GetSystemTime_X(LPSYSTEMTIME lpSystemTime); - void GetStartupInfoW_X(LPSTARTUPINFOW lpStartupInfo); - HMODULE GetModuleHandleW_X(LPCWSTR lpModuleName); HMODULE GetModuleHandleA_X(LPCSTR lpModuleName); @@ -161,6 +159,8 @@ extern "C" BOOL DeleteFileW_X(LPCWSTR lpFileName); + BOOL DeleteSynchronizationBarrier_X(LPSYNCHRONIZATION_BARRIER lpBarrier); + void DebugBreak_X(); BOOL SetEvent_X(HANDLE hEvent);