[RTL] Fix failure check in RtlpCreateCriticalSectionSem.

This commit is contained in:
Thomas Faber 2019-06-25 08:58:11 +02:00
parent dc0cd07d21
commit 0e6581440e
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -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);