mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 16:01:21 +00:00
[NTOS]: Fix an off-by-one-error which incorrectly causes GUI promotion to fail if the first GUI call is "0", since the limit on the GUI descriptor table will also be "0". We should check if the limit is equal to or lower, not just if it's lower.
Thanks to Physicus and Fireball for reporting and working this out. Should fix the "ArwinSS" problem. svn path=/trunk/; revision=45621
This commit is contained in:
parent
de9a1c0bd4
commit
d68a820d81
1 changed files with 1 additions and 1 deletions
|
@ -1401,7 +1401,7 @@ KiSystemCall(IN ULONG SystemCallNumber,
|
|||
DescriptorTable = (PVOID)((ULONG_PTR)Thread->ServiceTable + Offset);
|
||||
|
||||
/* Validate the system call number */
|
||||
if (__builtin_expect(Id > DescriptorTable->Limit, 0))
|
||||
if (__builtin_expect(Id >= DescriptorTable->Limit, 0))
|
||||
{
|
||||
/* Check if this is a GUI call */
|
||||
if (__builtin_expect(!(Offset & SERVICE_TABLE_TEST), 0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue