Remove RtlCopyVolatileMemory (#37)

This commit is contained in:
Ratin Gao
2024-08-17 07:44:49 +08:00
committed by GitHub
parent df94006275
commit a564eb1511
-25
View File
@@ -1257,31 +1257,6 @@ RtlWakeAddressSingle(
// end_rev
#if (PHNT_VERSION >= PHNT_WIN11_22H2)
FORCEINLINE
VOID
NTAPI
RtlCopyVolatileMemory(
_Out_writes_bytes_(Size) VOID *Destination,
_In_reads_bytes_(Size) volatile const VOID *Source,
_In_ SIZE_T Size
)
{
RtlCopyMemory(Destination, (const VOID *)Source, Size);
BarrierAfterRead();
}
#endif
FORCEINLINE
HANDLE
NTAPI
RtlReadHandleNoFence(
_In_reads_bytes_(sizeof(HANDLE)) volatile CONST HANDLE *Address
)
{
return (HANDLE)ReadPointerNoFence((PVOID *)Address);
}
// Strings
FORCEINLINE