Commit in reactos/ntoskrnl/ke/i386 on MAIN
exp.c+5-41.97 -> 1.98
fix infinite loop in KeRosDumpStackFrames()

reactos/ntoskrnl/ke/i386
exp.c 1.97 -> 1.98
diff -u -r1.97 -r1.98
--- exp.c	9 Dec 2004 14:20:06 -0000	1.97
+++ exp.c	14 Dec 2004 03:46:10 -0000	1.98
@@ -659,13 +659,14 @@
 	}
 	while ( MmIsAddressValid(Frame) && i++ < FrameCount )
 	{
-		if (!KeRosPrintAddress((PVOID)Frame[1]))
+		ULONG Addr = Frame[1];
+		if (!KeRosPrintAddress((PVOID)Addr))
 		{
-			DbgPrint("<%X>", (PVOID)Frame[1]);
+			DbgPrint("<%X>", Addr);
 		}
-		if (Frame[1] == 0xdeadbeef)
+		if ( Addr == 0 || Addr == 0xDEADBEEF )
 		{
-		    break;
+			break;
 		}
 		Frame = (PULONG)Frame[0];
 		DbgPrint(" ");
CVSspam 0.2.8