/* INCLUDES *****************************************************************/
-#include <ddk/ntddk.h>
+#include <ntos.h>
#include <internal/ke.h>
#include <internal/ps.h>
/* Implemented in except.s */
-VOID\r
-RtlpCaptureContext(PCONTEXT pContext);\r
+VOID
+RtlpCaptureContext(PCONTEXT pContext);
/* Macros that will help streamline the SEH implementations for
kernel mode and user mode */
DPRINT("RegistrationFrame is 0x%X\n", RegistrationFrame);
- while ((ULONG_PTR)RegistrationFrame != -1)
+ while ((ULONG_PTR)RegistrationFrame != (ULONG_PTR)-1)
{
EXCEPTION_RECORD ExceptionRecord2;
DWORD Temp = 0;
Context.Eax = EaxValue;
// Begin traversing the list of EXCEPTION_REGISTRATION
- while ((ULONG_PTR)ERHead != -1)
+ while ((ULONG_PTR)ERHead != (ULONG_PTR)-1)
{
EXCEPTION_RECORD er2;
DPRINT("Ran out of exception registrations. RegistrationFrame is (0x%X)\n",
RegistrationFrame);
- if ((ULONG_PTR)RegistrationFrame == -1)
+ if ((ULONG_PTR)RegistrationFrame == (ULONG_PTR)-1)
NtContinue(&Context, FALSE);
else
NtRaiseException(pExceptRec, &Context, 0);