mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[RTL] Fix failure check in RtlpCreateCriticalSectionSem.
This commit is contained in:
parent
dc0cd07d21
commit
0e6581440e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue