From 6756a59755e9f43918c11a4c74236f0a31f1c5de Mon Sep 17 00:00:00 2001 From: guido Date: Sat, 5 Apr 2003 22:21:33 +0000 Subject: [PATCH] initialize variable svn path=/trunk/; revision=4503 --- reactos/ntoskrnl/kd/gdbstub.c | 2 +- reactos/ntoskrnl/rtl/i386/exception.c | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/reactos/ntoskrnl/kd/gdbstub.c b/reactos/ntoskrnl/kd/gdbstub.c index 722e922f016..f32992a005b 100644 --- a/reactos/ntoskrnl/kd/gdbstub.c +++ b/reactos/ntoskrnl/kd/gdbstub.c @@ -400,7 +400,7 @@ GspHex2Mem (PCHAR Buffer, ULONG countinpage; ULONG i; CHAR ch; - ULONG oldprot; + ULONG oldprot = 0; current = Address; while ( current < Address + Count ) diff --git a/reactos/ntoskrnl/rtl/i386/exception.c b/reactos/ntoskrnl/rtl/i386/exception.c index f5f104060a4..7c8a32aff87 100755 --- a/reactos/ntoskrnl/rtl/i386/exception.c +++ b/reactos/ntoskrnl/rtl/i386/exception.c @@ -1,4 +1,4 @@ -/* $Id: exception.c,v 1.4 2002/11/14 18:21:07 chorns Exp $ +/* $Id: exception.c,v 1.5 2003/04/05 22:20:49 guido Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -321,11 +321,12 @@ RtlUnwind(PEXCEPTION_REGISTRATION RegistrationFrame, DPRINT("ERHead is 0x%X\n", ERHead); + pExceptRec = &TempER; + if (ExceptionRecord == NULL) // The normal case { - DPRINT("ExceptionRecord == NULL (normal)\n"); + DPRINT("ExceptionRecord == NULL (normal)\n"); - pExceptRec = &TempER; pExceptRec->ExceptionFlags = 0; pExceptRec->ExceptionCode = STATUS_UNWIND; pExceptRec->ExceptionRecord = NULL; @@ -342,11 +343,11 @@ RtlUnwind(PEXCEPTION_REGISTRATION RegistrationFrame, DPRINT("ExceptionFlags == 0x%x:\n", pExceptRec->ExceptionFlags); if (pExceptRec->ExceptionFlags & EXCEPTION_UNWINDING) { - DPRINT(" * EXCEPTION_UNWINDING (0x%x)\n", EXCEPTION_UNWINDING); + DPRINT(" * EXCEPTION_UNWINDING (0x%x)\n", EXCEPTION_UNWINDING); } if (pExceptRec->ExceptionFlags & EXCEPTION_EXIT_UNWIND) { - DPRINT(" * EXCEPTION_EXIT_UNWIND (0x%x)\n", EXCEPTION_EXIT_UNWIND); + DPRINT(" * EXCEPTION_EXIT_UNWIND (0x%x)\n", EXCEPTION_EXIT_UNWIND); } #endif /* NDEBUG */