[RTL] Fix a typo & remove useless cast

This commit is contained in:
Jérôme Gardou 2021-02-01 09:08:13 +01:00
parent 1509f0e536
commit d712c895fd

View file

@ -791,5 +791,5 @@ BOOLEAN
NTAPI
RtlTryAcquireSRWLockExclusive(PRTL_SRWLOCK SRWLock)
{
return InterlockedCompareExchangePointer(&SRWLock->Ptr, (ULONG_PTR*)(ULONG_PTR)RTL_SRWLOCK_SHARED, 0) == 0;
return InterlockedCompareExchangePointer(&SRWLock->Ptr, (ULONG_PTR*)RTL_SRWLOCK_OWNED, 0) == 0;
}