mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[NTOSKRNL] Correctly use SEH2 macros (fixes GCC x64 compilation)
This commit is contained in:
parent
80b1b0b294
commit
e581123c35
1 changed files with 4 additions and 3 deletions
|
@ -330,6 +330,7 @@ KiSystemCallHandler(
|
|||
{
|
||||
GdiBatchCount = 0;
|
||||
}
|
||||
_SEH2_END;
|
||||
|
||||
/* Flush batch, if there are entries */
|
||||
if (GdiBatchCount != 0)
|
||||
|
@ -363,7 +364,7 @@ KiSystemCallHandler(
|
|||
/* Get stack bytes and calculate argument count */
|
||||
Count = DescriptorTable->Number[ServiceNumber] / 8;
|
||||
|
||||
__try
|
||||
_SEH2_TRY
|
||||
{
|
||||
switch (Count)
|
||||
{
|
||||
|
@ -391,12 +392,12 @@ KiSystemCallHandler(
|
|||
break;
|
||||
}
|
||||
}
|
||||
__except(1)
|
||||
_SEH2_EXCEPT(1)
|
||||
{
|
||||
TrapFrame->Rax = _SEH2_GetExceptionCode();
|
||||
return (PVOID)NtSyscallFailure;
|
||||
}
|
||||
|
||||
_SEH2_END;
|
||||
|
||||
return (PVOID)DescriptorTable->Base[ServiceNumber];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue