msvcr100: Fix next writer unblocking in reader_writer_lock::unlock.

Fixes regression introduced by 256c344550.
This commit is contained in:
Piotr Caban 2023-05-31 22:31:12 +02:00 committed by Alexandre Julliard
parent cf3815dc59
commit 0336d66ea1

View file

@ -3302,7 +3302,7 @@ void __thiscall reader_writer_lock_unlock(reader_writer_lock *this)
count = InterlockedDecrement(&this->count);
if (count != WRITER_WAITING)
return;
NtReleaseKeyedEvent(keyed_event, this->writer_head, 0, NULL);
call_Context_Unblock(this->writer_head->ctx);
return;
}