[DISKPART] Get rid of PrintMessageString()

This commit is contained in:
Eric Kohl 2022-06-01 00:46:45 +02:00
parent 31139c253f
commit ca51f00049
3 changed files with 10 additions and 18 deletions

View file

@ -392,10 +392,6 @@ RoundingDivide(
_In_ ULONGLONG Dividend,
_In_ ULONGLONG Divisor);
VOID
PrintMessageString(
_In_ DWORD dwMessage);
/* offline.c */
BOOL offline_main(INT argc, LPWSTR *argv);

View file

@ -89,7 +89,11 @@ HelpCommand(
(wcsicmp(pCommand->cmd3, cmdptr->cmd3) == 0) &&
(cmdptr->help_detail != MSG_NONE))
{
PrintMessageString(cmdptr->help_detail);
ConMsgPuts(StdOut,
FORMAT_MESSAGE_FROM_HMODULE,
NULL,
cmdptr->help_detail,
LANG_USER_DEFAULT);
bSubCommands = TRUE;
}
}
@ -97,7 +101,11 @@ HelpCommand(
if ((bSubCommands == FALSE) && (pCommand->help_detail != MSG_NONE))
{
PrintMessageString(pCommand->help_detail);
ConMsgPuts(StdOut,
FORMAT_MESSAGE_FROM_HMODULE,
NULL,
pCommand->help_detail,
LANG_USER_DEFAULT);
}
ConPuts(StdOut, L"\n");

View file

@ -78,15 +78,3 @@ RoundingDivide(
{
return (Dividend + Divisor / 2) / Divisor;
}
VOID
PrintMessageString(
_In_ DWORD dwMessage)
{
ConMsgPuts(StdOut,
FORMAT_MESSAGE_FROM_HMODULE,
NULL, //hModuleNetMsg,
dwMessage,
LANG_USER_DEFAULT);
}