From cfa6623328258428841e714d2a0fba73cbe287fc Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 6 Oct 2012 12:21:41 +0000 Subject: [PATCH] [WIN32K] Disable APCs when acquiring the pushlock. svn path=/trunk/; revision=57495 --- reactos/win32ss/gdi/ntgdi/text.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/win32ss/gdi/ntgdi/text.h b/reactos/win32ss/gdi/ntgdi/text.h index 2dfdcd14fd5..20bfbbda0c3 100644 --- a/reactos/win32ss/gdi/ntgdi/text.h +++ b/reactos/win32ss/gdi/ntgdi/text.h @@ -85,6 +85,7 @@ FORCEINLINE TEXTOBJ_LockText(HFONT hfont) { PLFONT plfnt = LFONT_ShareLockFont(hfont); + KeEnterCriticalRegion(); ExAcquirePushLockExclusive(&plfnt->lock); return plfnt; } @@ -94,6 +95,7 @@ FORCEINLINE TEXTOBJ_UnlockText(PLFONT plfnt) { ExReleasePushLockExclusive(&plfnt->lock); + KeLeaveCriticalRegion(); LFONT_ShareUnlockFont(plfnt); }