https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8254585be535d8cec4b9d…
commit 8254585be535d8cec4b9dc36e8ba357adb103807
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Thu Oct 28 09:48:48 2021 -0400
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sat Nov 13 21:23:39 2021 -0500
[NTOS:EX] Assert some AcquireResource return values. CID 1321882
---
ntoskrnl/ex/resource.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ntoskrnl/ex/resource.c b/ntoskrnl/ex/resource.c
index bf6fd82d58d..5b90c89813c 100644
--- a/ntoskrnl/ex/resource.c
+++ b/ntoskrnl/ex/resource.c
@@ -2192,7 +2192,7 @@ ExEnterCriticalRegionAndAcquireResourceExclusive(IN PERESOURCE
Resource)
KeEnterCriticalRegion();
/* Acquire the resource */
- ExAcquireResourceExclusiveLite(Resource, TRUE);
+ NT_VERIFY(ExAcquireResourceExclusiveLite(Resource, TRUE));
/* Return the Win32 Thread */
return KeGetCurrentThread()->Win32Thread;
@@ -2221,7 +2221,7 @@ ExEnterCriticalRegionAndAcquireResourceShared(IN PERESOURCE
Resource)
KeEnterCriticalRegion();
/* Acquire the resource */
- ExAcquireResourceSharedLite(Resource, TRUE);
+ NT_VERIFY(ExAcquireResourceSharedLite(Resource, TRUE));
/* Return the Win32 Thread */
return KeGetCurrentThread()->Win32Thread;
@@ -2252,7 +2252,7 @@ ExEnterCriticalRegionAndAcquireSharedWaitForExclusive(IN PERESOURCE
Resource)
KeEnterCriticalRegion();
/* Acquire the resource */
- ExAcquireSharedWaitForExclusive(Resource, TRUE);
+ NT_VERIFY(ExAcquireSharedWaitForExclusive(Resource, TRUE));
/* Return the Win32 Thread */
return KeGetCurrentThread()->Win32Thread;