BOOLEAN
NTAPI
-INIT_FUNCTION
KdInitSystem(IN ULONG BootPhase,
IN PLOADER_PARAMETER_BLOCK LoaderBlock)
{
STRING ImageName;
PLDR_DATA_TABLE_ENTRY LdrEntry;
PLIST_ENTRY NextEntry;
- ULONG i, j, Length, DebugOptionLength;
+ ULONG i, j, Length;
+ SIZE_T DebugOptionLength;
CHAR NameBuffer[256];
PWCHAR Name;
}
/* Calculate the length of the current option */
- DebugOptionLength = ((ULONG_PTR)DebugOptionEnd -
- (ULONG_PTR)DebugOptionStart);
+ DebugOptionLength = (DebugOptionEnd - DebugOptionStart);
/*
* Break out if we reached the last option
{
/*
* Disable the debugger, but
- * allow it to be reenabled
+ * allow it to be reenabled
*/
DisableKdAfterInit = TRUE;
BlockEnable = FALSE;
}
/*
- * If there are more options then
+ * If there are more options then
* the next character should be a comma
*/
if (*DebugOptionEnd != ',')