mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 12:14:32 +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)
|
NULL) != NULL)
|
||||||
{
|
{
|
||||||
/* Someone else just created an event */
|
/* Someone else just created an event */
|
||||||
if (hEvent != INVALID_HANDLE_VALUE)
|
if (hNewEvent != INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
DPRINT("Closing already created event: %p\n", hNewEvent);
|
DPRINT("Closing already created event: %p\n", hNewEvent);
|
||||||
NtClose(hNewEvent);
|
NtClose(hNewEvent);
|
||||||
|
|
Loading…
Reference in a new issue