@@ -641,7 +641,7 @@ KdbpGetComponentId(
641
641
{
642
642
ULONG i ;
643
643
644
- for (i = 0 ; i < sizeof (ComponentTable ) / sizeof ( ComponentTable [ 0 ] ); i ++ )
644
+ for (i = 0 ; i < RTL_NUMBER_OF (ComponentTable ); i ++ )
645
645
{
646
646
if (_stricmp (ComponentName , ComponentTable [i ].Name ) == 0 )
647
647
{
@@ -689,7 +689,7 @@ KdbpCmdFilter(
689
689
KdbpPrint ("The list of debug filter components currently available on your system is:\n\n" );
690
690
KdbpPrint (" Component Name Component ID\n"
691
691
"================ ==============\n" );
692
- for (i = 0 ; i < sizeof (ComponentTable ) / sizeof ( ComponentTable [ 0 ] ); i ++ )
692
+ for (i = 0 ; i < RTL_NUMBER_OF (ComponentTable ); i ++ )
693
693
{
694
694
KdbpPrint ("%16s 0x%08lx\n" , ComponentTable [i ].Name , ComponentTable [i ].Id );
695
695
}
@@ -704,7 +704,7 @@ KdbpCmdFilter(
704
704
705
705
if (p > opt )
706
706
{
707
- for (j = 0 ; j < sizeof (debug_classes ) / sizeof ( debug_classes [ 0 ] ); j ++ )
707
+ for (j = 0 ; j < RTL_NUMBER_OF (debug_classes ); j ++ )
708
708
{
709
709
SIZE_T len = strlen (debug_classes [j ].Name );
710
710
if (len != (p - opt ))
@@ -718,7 +718,7 @@ KdbpCmdFilter(
718
718
break ;
719
719
}
720
720
}
721
- if (j == sizeof (debug_classes ) / sizeof ( debug_classes [ 0 ] ))
721
+ if (j == RTL_NUMBER_OF (debug_classes ))
722
722
{
723
723
Level = strtoul (opt , & pend , 0 );
724
724
if (pend != p )
@@ -1702,7 +1702,7 @@ KdbpCmdThread(
1702
1702
Eip = 0 ;
1703
1703
1704
1704
if (Ebp ) /* FIXME: Should we attach to the process to read Ebp[1]? */
1705
- KdbpSafeReadMemory (& Eip , Ebp + 1 , sizeof (Eip ));
1705
+ KdbpSafeReadMemory (& Eip , Ebp + 1 , sizeof (Eip ));
1706
1706
}
1707
1707
1708
1708
if (Thread -> Tcb .State < (DeferredReady + 1 ))
@@ -2688,7 +2688,7 @@ KdbpPrint(
2688
2688
break ;
2689
2689
2690
2690
Buffer [Length ++ ] = c ;
2691
- if (Length >= (sizeof (Buffer ) - 1 ))
2691
+ if (Length >= (sizeof (Buffer ) - 1 ))
2692
2692
break ;
2693
2693
}
2694
2694
@@ -2723,7 +2723,7 @@ KdbpPrint(
2723
2723
break ;
2724
2724
2725
2725
Buffer [Length ++ ] = c ;
2726
- if (isalpha (c ) || Length >= (sizeof (Buffer ) - 1 ))
2726
+ if (isalpha (c ) || Length >= (sizeof (Buffer ) - 1 ))
2727
2727
break ;
2728
2728
}
2729
2729
@@ -2762,7 +2762,7 @@ KdbpPrint(
2762
2762
2763
2763
/* Get the string */
2764
2764
va_start (ap , Format );
2765
- Length = _vsnprintf (Buffer , sizeof (Buffer ) - 1 , Format , ap );
2765
+ Length = _vsnprintf (Buffer , sizeof (Buffer ) - 1 , Format , ap );
2766
2766
Buffer [Length ] = '\0' ;
2767
2767
va_end (ap );
2768
2768
@@ -3005,7 +3005,7 @@ KdbpPager(
3005
3005
break ;
3006
3006
3007
3007
InBuffer [Length ++ ] = c ;
3008
- if (Length >= (sizeof (InBuffer ) - 1 ))
3008
+ if (Length >= (sizeof (InBuffer ) - 1 ))
3009
3009
break ;
3010
3010
}
3011
3011
@@ -3040,7 +3040,7 @@ KdbpPager(
3040
3040
break ;
3041
3041
3042
3042
InBuffer [Length ++ ] = c ;
3043
- if (isalpha (c ) || Length >= (sizeof (InBuffer ) - 1 ))
3043
+ if (isalpha (c ) || Length >= (sizeof (InBuffer ) - 1 ))
3044
3044
break ;
3045
3045
}
3046
3046
@@ -3680,7 +3680,7 @@ KdbpCliMainLoop(
3680
3680
KdbpPrint (KdbPromptString .Buffer );
3681
3681
3682
3682
/* Read a command and remember it */
3683
- KdbpReadCommand (Command , sizeof (Command ));
3683
+ KdbpReadCommand (Command , sizeof (Command ));
3684
3684
KdbpCommandHistoryAppend (Command );
3685
3685
3686
3686
/* Reset the number of rows/cols printed and output aborted state */
@@ -3793,7 +3793,7 @@ KdbpCliInit(VOID)
3793
3793
}
3794
3794
3795
3795
/* Get the size of the file */
3796
- Status = ZwQueryInformationFile (hFile , & Iosb , & FileStdInfo , sizeof (FileStdInfo ),
3796
+ Status = ZwQueryInformationFile (hFile , & Iosb , & FileStdInfo , sizeof (FileStdInfo ),
3797
3797
FileStandardInformation );
3798
3798
if (!NT_SUCCESS (Status ))
3799
3799
{
0 commit comments