Commit in reactos/ntoskrnl/ke/i386 on MAIN
exp.c+5-81.98 -> 1.99
fix stack dumps from printing an infinite amount of <0> in some cases

reactos/ntoskrnl/ke/i386
exp.c 1.98 -> 1.99
diff -u -r1.98 -r1.99
--- exp.c	14 Dec 2004 03:46:10 -0000	1.98
+++ exp.c	18 Dec 2004 20:26:03 -0000	1.99
@@ -632,10 +632,11 @@
 	DbgPrint("Frames: ");
 	while ( MmIsAddressValid(Frame) )
 	{
-		if (!KeRosPrintAddress((PVOID)Frame[1]))
-		{
-			DbgPrint("<%X>", (PVOID)Frame[1]);
-		}
+		ULONG Addr = Frame[1];
+		if (!KeRosPrintAddress((PVOID)Addr))
+			DbgPrint("<%X>", Addr);
+		if ( Addr == 0 || Addr == 0xDEADBEEF )
+			break;
 		Frame = (PULONG)Frame[0];
 		DbgPrint(" ");
 	}
@@ -661,13 +662,9 @@
 	{
 		ULONG Addr = Frame[1];
 		if (!KeRosPrintAddress((PVOID)Addr))
-		{
 			DbgPrint("<%X>", Addr);
-		}
 		if ( Addr == 0 || Addr == 0xDEADBEEF )
-		{
 			break;
-		}
 		Frame = (PULONG)Frame[0];
 		DbgPrint(" ");
 	}
CVSspam 0.2.8