Author: tkreuzer
Date: Sat Oct 6 12:21:41 2012
New Revision: 57495
URL:
http://svn.reactos.org/svn/reactos?rev=57495&view=rev
Log:
[WIN32K]
Disable APCs when acquiring the pushlock.
Modified:
trunk/reactos/win32ss/gdi/ntgdi/text.h
Modified: trunk/reactos/win32ss/gdi/ntgdi/text.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/text.h?r…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/text.h [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/text.h [iso-8859-1] Sat Oct 6 12:21:41 2012
@@ -85,6 +85,7 @@
TEXTOBJ_LockText(HFONT hfont)
{
PLFONT plfnt = LFONT_ShareLockFont(hfont);
+ KeEnterCriticalRegion();
ExAcquirePushLockExclusive(&plfnt->lock);
return plfnt;
}
@@ -94,6 +95,7 @@
TEXTOBJ_UnlockText(PLFONT plfnt)
{
ExReleasePushLockExclusive(&plfnt->lock);
+ KeLeaveCriticalRegion();
LFONT_ShareUnlockFont(plfnt);
}