IN INT TextID)
{
const MUI_ENTRY * entry;
+ ULONG Index = 0;
/* Get the MUI entry */
entry = MUIGetEntry(Page, TextID);
if (!entry)
return;
- /* Remove the text by using CONSOLE_ClearTextXY() */
- CONSOLE_ClearTextXY(
- entry->X,
- entry->Y,
- (ULONG)strlen(entry->Buffer));
+ /* Ensure that the text string given by the text ID and page is not NULL */
+ while (entry[Index].Buffer != NULL)
+ {
+ /* If text ID is not correct, skip the entry */
+ if (entry[Index].TextID != TextID)
+ {
+ Index++;
+ continue;
+ }
+
+ /* Remove the text by using CONSOLE_ClearTextXY() */
+ CONSOLE_ClearTextXY(
+ entry[Index].X,
+ entry[Index].Y,
+ (ULONG)strlen(entry[Index].Buffer));
+
+ /* Increment the index and loop over next entires with the same ID */
+ Index++;
+ }
}
/**
IN INT Flags)
{
const MUI_ENTRY * entry;
+ ULONG Index = 0;
/* Get the MUI entry */
entry = MUIGetEntry(Page, TextID);
if (!entry)
return;
- /* Now, begin removing the text by calling CONSOLE_ClearStyledText() */
- CONSOLE_ClearStyledText(
- entry->X,
- entry->Y,
- Flags,
- (ULONG)strlen(entry->Buffer));
+ /* Ensure that the text string given by the text ID and page is not NULL */
+ while (entry[Index].Buffer != NULL)
+ {
+ /* If text ID is not correct, skip the entry */
+ if (entry[Index].TextID != TextID)
+ {
+ Index++;
+ continue;
+ }
+
+ /* Now, begin removing the text by calling CONSOLE_ClearStyledText() */
+ CONSOLE_ClearStyledText(
+ entry[Index].X,
+ entry[Index].Y,
+ Flags,
+ (ULONG)strlen(entry[Index].Buffer));
+
+ /* Increment the index and loop over next entires with the same ID */
+ Index++;
+ }
}
/**
IN INT TextID)
{
const MUI_ENTRY * entry;
+ ULONG Index = 0;
/* Get the MUI entry */
entry = MUIGetEntry(Page, TextID);
if (!entry)
return;
- /* Print the text to the console output by calling CONSOLE_SetTextXY() */
- CONSOLE_SetTextXY(entry->X, entry->Y, entry->Buffer);
+ /* Ensure that the text string given by the text ID and page is not NULL */
+ while (entry[Index].Buffer != NULL)
+ {
+ /* If text ID is not correct, skip the entry */
+ if (entry[Index].TextID != TextID)
+ {
+ Index++;
+ continue;
+ }
+
+ /* Print the text to the console output by calling CONSOLE_SetTextXY() */
+ CONSOLE_SetTextXY(entry[Index].X, entry[Index].Y, entry[Index].Buffer);
+
+ /* Increment the index and loop over next entires with the same ID */
+ Index++;
+ }
}
/**
IN INT Flags)
{
const MUI_ENTRY * entry;
+ ULONG Index = 0;
/* Get the MUI entry */
entry = MUIGetEntry(Page, TextID);
if (!entry)
return;
- /* Print the text to the console output by calling CONSOLE_SetStyledText() */
- CONSOLE_SetStyledText(entry->X, entry->Y, Flags, entry->Buffer);
+ /* Ensure that the text string given by the text ID and page is not NULL */
+ while (entry[Index].Buffer != NULL)
+ {
+ /* If text ID is not correct, skip the entry */
+ if (entry[Index].TextID != TextID)
+ {
+ Index++;
+ continue;
+ }
+
+ /* Print the text to the console output by calling CONSOLE_SetStyledText() */
+ CONSOLE_SetStyledText(entry[Index].X, entry[Index].Y, Flags, entry[Index].Buffer);
+
+ /* Increment the index and loop over next entires with the same ID */
+ Index++;
+ }
}
VOID