https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d712c895fd8373eba1c0348add37be81982575cc
commit d712c895fd8373eba1c0348add37be81982575cc Author: Jérôme Gardou <jerome.gar...@reactos.org> AuthorDate: Mon Feb 1 09:08:13 2021 +0100 Commit: Jérôme Gardou <jerome.gar...@reactos.org> CommitDate: Mon Feb 1 09:09:19 2021 +0100 [RTL] Fix a typo & remove useless cast --- sdk/lib/rtl/srw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/lib/rtl/srw.c b/sdk/lib/rtl/srw.c index 8b5b47ce59f..68ac2614786 100644 --- a/sdk/lib/rtl/srw.c +++ b/sdk/lib/rtl/srw.c @@ -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; }