Author: akhaldi
Date: Sat Jan 14 11:14:40 2012
New Revision: 54949
URL:
http://svn.reactos.org/svn/reactos?rev=54949&view=rev
Log:
[NTOSKRNL]
* Use a different variable for the inside loop.
Modified:
trunk/reactos/ntoskrnl/ke/bug.c
Modified: trunk/reactos/ntoskrnl/ke/bug.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/bug.c?rev=5494…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/bug.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/bug.c [iso-8859-1] Sat Jan 14 11:14:40 2012
@@ -434,7 +434,7 @@
KeGetBugMessageText(IN ULONG BugCheckCode,
OUT PANSI_STRING OutputString OPTIONAL)
{
- ULONG i;
+ ULONG i, j;
ULONG IdOffset;
ULONG_PTR MessageEntry;
PCHAR BugCode;
@@ -457,7 +457,7 @@
IdOffset = BugCheckCode - KiBugCodeMessages->Blocks[i].LowId;
/* Get offset to ID */
- for (i = 0; i < IdOffset; i++)
+ for (j = 0; j < IdOffset; j++)
{
/* Advance in the Entries */
MessageEntry += ((PMESSAGE_RESOURCE_ENTRY)MessageEntry)->