mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 10:00:16 +02:00
Merge pull request #5189 from bylaws/fixsig
Windows: Fix RtlWaitOnAddress signature
This commit is contained in:
2 files changed
+7
-4
No files matched your search
@@ -14,7 +14,10 @@
|
||||
#include "../Priv.h"
|
||||
|
||||
WINBOOL WaitOnAddress(volatile void* Address, void* CompareAddress, SIZE_T AddressSize, DWORD dwMilliseconds) {
|
||||
return RtlWaitOnAddress(Address, CompareAddress, AddressSize, dwMilliseconds) == STATUS_SUCCESS;
|
||||
LARGE_INTEGER Time;
|
||||
// A negative value indicates a relative time measured in 100ns intervals.
|
||||
Time.QuadPart = static_cast<ULONGLONG>(dwMilliseconds) * -10000;
|
||||
return RtlWaitOnAddress(const_cast<void*>(Address), CompareAddress, AddressSize, dwMilliseconds == INFINITE ? nullptr : &Time) == STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
void WakeByAddressAll(PVOID Address) {
|
||||
|
||||
@@ -564,9 +564,9 @@ NTSTATUS WINAPI RtlWow64SuspendThread(HANDLE, ULONG*);
|
||||
void WINAPI RtlAcquireSRWLockShared(RTL_SRWLOCK*);
|
||||
void WINAPI RtlReleaseSRWLockShared(RTL_SRWLOCK*);
|
||||
BOOLEAN WINAPI RtlTryAcquireSRWLockShared(RTL_SRWLOCK*);
|
||||
void WINAPI RtlWakeAddressAll(void*);
|
||||
BOOL WINAPI RtlWaitOnAddress(volatile void*, void*, SIZE_T, DWORD);
|
||||
void WINAPI RtlWakeAddressSingle(void*);
|
||||
void WINAPI RtlWakeAddressAll(const void*);
|
||||
NTSTATUS WINAPI RtlWaitOnAddress(const void*, const void*, SIZE_T, const LARGE_INTEGER*);
|
||||
void WINAPI RtlWakeAddressSingle(const void*);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user