mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +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)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue