mirror of
https://github.com/reactos/reactos.git
synced 2024-06-25 23:41:35 +00:00
[NTOS:KE:X64] Implement flushing the GDI batch
This commit is contained in:
parent
c86c55ace7
commit
fbdff437fd
|
@ -432,6 +432,28 @@ KiSystemCallHandler(
|
|||
Offset = (ServiceNumber >> SERVICE_TABLE_SHIFT) & SERVICE_TABLE_MASK;
|
||||
ServiceNumber &= SERVICE_NUMBER_MASK;
|
||||
|
||||
/* Check for win32k system calls */
|
||||
if (Offset & SERVICE_TABLE_TEST)
|
||||
{
|
||||
ULONG GdiBatchCount;
|
||||
|
||||
/* Read the GDI batch count from the TEB */
|
||||
_SEH2_TRY
|
||||
{
|
||||
GdiBatchCount = NtCurrentTeb()->GdiBatchCount;
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
GdiBatchCount = 0;
|
||||
}
|
||||
|
||||
/* Flush batch, if there are entries */
|
||||
if (GdiBatchCount != 0)
|
||||
{
|
||||
KeGdiFlushUserBatch();
|
||||
}
|
||||
}
|
||||
|
||||
/* Get descriptor table */
|
||||
DescriptorTable = (PVOID)((ULONG_PTR)Thread->ServiceTable + Offset);
|
||||
|
||||
|
|
Loading…
Reference in a new issue