mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[WIN32K]
Disable APCs when acquiring the pushlock. svn path=/trunk/; revision=57495
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user