ntdll: Move the PEB lock Rtl functions to env.c.

This commit is contained in:
Alexandre Julliard 2024-06-14 11:41:49 +02:00
parent 30816b0ca0
commit b563ff18ce
2 changed files with 16 additions and 16 deletions

View file

@ -106,6 +106,22 @@ static void set_wow64_environment( WCHAR **env )
}
/******************************************************************************
* RtlAcquirePebLock [NTDLL.@]
*/
void WINAPI RtlAcquirePebLock(void)
{
RtlEnterCriticalSection( NtCurrentTeb()->Peb->FastPebLock );
}
/******************************************************************************
* RtlReleasePebLock [NTDLL.@]
*/
void WINAPI RtlReleasePebLock(void)
{
RtlLeaveCriticalSection( NtCurrentTeb()->Peb->FastPebLock );
}
/******************************************************************************
* RtlCreateEnvironment [NTDLL.@]
*/

View file

@ -183,22 +183,6 @@ NTSTATUS WINAPI vDbgPrintExWithPrefix( LPCSTR prefix, ULONG id, ULONG level, LPC
return STATUS_SUCCESS;
}
/******************************************************************************
* RtlAcquirePebLock [NTDLL.@]
*/
VOID WINAPI RtlAcquirePebLock(void)
{
RtlEnterCriticalSection( NtCurrentTeb()->Peb->FastPebLock );
}
/******************************************************************************
* RtlReleasePebLock [NTDLL.@]
*/
VOID WINAPI RtlReleasePebLock(void)
{
RtlLeaveCriticalSection( NtCurrentTeb()->Peb->FastPebLock );
}
/******************************************************************************
* RtlInitializeGenericTable [NTDLL.@]
*/