mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:23:07 +00:00
[WIN32K]
Apply the same fix for EngAcquireSemaphore to EngReleaseSemaphore. CORE-9779 #comment Yet another try please svn path=/trunk/; revision=70106
This commit is contained in:
parent
2a541347a6
commit
b5c754bd5f
1 changed files with 8 additions and 1 deletions
|
@ -68,7 +68,14 @@ EngReleaseSemaphore(
|
||||||
{
|
{
|
||||||
// www.osr.com/ddk/graphics/gdifncs_5u3r.htm
|
// www.osr.com/ddk/graphics/gdifncs_5u3r.htm
|
||||||
PTHREADINFO W32Thread;
|
PTHREADINFO W32Thread;
|
||||||
ASSERT(hsem);
|
|
||||||
|
/* On Windows a NULL hsem is ignored */
|
||||||
|
if (hsem == NULL)
|
||||||
|
{
|
||||||
|
DPRINT1("EngReleaseSemaphore called with hsem == NULL!\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
W32Thread = PsGetThreadWin32Thread(PsGetCurrentThread());
|
W32Thread = PsGetThreadWin32Thread(PsGetCurrentThread());
|
||||||
if (W32Thread) --W32Thread->dwEngAcquireCount;
|
if (W32Thread) --W32Thread->dwEngAcquireCount;
|
||||||
ExReleaseResourceAndLeaveCriticalRegion((PERESOURCE)hsem);
|
ExReleaseResourceAndLeaveCriticalRegion((PERESOURCE)hsem);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue