mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[WIN32K]
Disable APCs when acquiring the pushlock. svn path=/trunk/; revision=57495
This commit is contained in:
parent
fcbab8b1a3
commit
cfa6623328
1 changed files with 2 additions and 0 deletions
|
@ -85,6 +85,7 @@ FORCEINLINE
|
||||||
TEXTOBJ_LockText(HFONT hfont)
|
TEXTOBJ_LockText(HFONT hfont)
|
||||||
{
|
{
|
||||||
PLFONT plfnt = LFONT_ShareLockFont(hfont);
|
PLFONT plfnt = LFONT_ShareLockFont(hfont);
|
||||||
|
KeEnterCriticalRegion();
|
||||||
ExAcquirePushLockExclusive(&plfnt->lock);
|
ExAcquirePushLockExclusive(&plfnt->lock);
|
||||||
return plfnt;
|
return plfnt;
|
||||||
}
|
}
|
||||||
|
@ -94,6 +95,7 @@ FORCEINLINE
|
||||||
TEXTOBJ_UnlockText(PLFONT plfnt)
|
TEXTOBJ_UnlockText(PLFONT plfnt)
|
||||||
{
|
{
|
||||||
ExReleasePushLockExclusive(&plfnt->lock);
|
ExReleasePushLockExclusive(&plfnt->lock);
|
||||||
|
KeLeaveCriticalRegion();
|
||||||
LFONT_ShareUnlockFont(plfnt);
|
LFONT_ShareUnlockFont(plfnt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue