https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0e6581440eefb1f798af9d...
commit 0e6581440eefb1f798af9d80c18e02b88f037250 Author: Thomas Faber thomas.faber@reactos.org AuthorDate: Tue Jun 25 08:58:11 2019 +0200 Commit: Thomas Faber thomas.faber@reactos.org CommitDate: Tue Jun 25 09:26:05 2019 +0200
[RTL] Fix failure check in RtlpCreateCriticalSectionSem. --- sdk/lib/rtl/critical.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/lib/rtl/critical.c b/sdk/lib/rtl/critical.c index ff0d1a9732c..1f247f53ebf 100644 --- a/sdk/lib/rtl/critical.c +++ b/sdk/lib/rtl/critical.c @@ -80,7 +80,7 @@ RtlpCreateCriticalSectionSem(PRTL_CRITICAL_SECTION CriticalSection) NULL) != NULL) { /* Someone else just created an event */ - if (hEvent != INVALID_HANDLE_VALUE) + if (hNewEvent != INVALID_HANDLE_VALUE) { DPRINT("Closing already created event: %p\n", hNewEvent); NtClose(hNewEvent);