Disable APCs when acquiring the pushlock.

svn path=/trunk/; revision=57495
This commit is contained in:
Timo Kreuzer 2012-10-06 12:21:41 +00:00
parent fcbab8b1a3
commit cfa6623328

View file

@ -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);
}