mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 06:55:55 +00:00
[DISKPART] Get rid of PrintMessageString()
This commit is contained in:
parent
31139c253f
commit
ca51f00049
3 changed files with 10 additions and 18 deletions
|
@ -392,10 +392,6 @@ RoundingDivide(
|
||||||
_In_ ULONGLONG Dividend,
|
_In_ ULONGLONG Dividend,
|
||||||
_In_ ULONGLONG Divisor);
|
_In_ ULONGLONG Divisor);
|
||||||
|
|
||||||
VOID
|
|
||||||
PrintMessageString(
|
|
||||||
_In_ DWORD dwMessage);
|
|
||||||
|
|
||||||
/* offline.c */
|
/* offline.c */
|
||||||
BOOL offline_main(INT argc, LPWSTR *argv);
|
BOOL offline_main(INT argc, LPWSTR *argv);
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,11 @@ HelpCommand(
|
||||||
(wcsicmp(pCommand->cmd3, cmdptr->cmd3) == 0) &&
|
(wcsicmp(pCommand->cmd3, cmdptr->cmd3) == 0) &&
|
||||||
(cmdptr->help_detail != MSG_NONE))
|
(cmdptr->help_detail != MSG_NONE))
|
||||||
{
|
{
|
||||||
PrintMessageString(cmdptr->help_detail);
|
ConMsgPuts(StdOut,
|
||||||
|
FORMAT_MESSAGE_FROM_HMODULE,
|
||||||
|
NULL,
|
||||||
|
cmdptr->help_detail,
|
||||||
|
LANG_USER_DEFAULT);
|
||||||
bSubCommands = TRUE;
|
bSubCommands = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -97,7 +101,11 @@ HelpCommand(
|
||||||
|
|
||||||
if ((bSubCommands == FALSE) && (pCommand->help_detail != MSG_NONE))
|
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");
|
ConPuts(StdOut, L"\n");
|
||||||
|
|
|
@ -78,15 +78,3 @@ RoundingDivide(
|
||||||
{
|
{
|
||||||
return (Dividend + Divisor / 2) / Divisor;
|
return (Dividend + Divisor / 2) / Divisor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
VOID
|
|
||||||
PrintMessageString(
|
|
||||||
_In_ DWORD dwMessage)
|
|
||||||
{
|
|
||||||
ConMsgPuts(StdOut,
|
|
||||||
FORMAT_MESSAGE_FROM_HMODULE,
|
|
||||||
NULL, //hModuleNetMsg,
|
|
||||||
dwMessage,
|
|
||||||
LANG_USER_DEFAULT);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue