mirror of
https://github.com/reactos/reactos
synced 2025-10-06 00:12:51 +02:00
[NETSH] Improve PrintMessageFromModule
Thanks a lot for the hint, Hermès!
This commit is contained in:
@@ -235,16 +235,13 @@ PrintMessageFromModule(
|
||||
_In_ DWORD dwMsgId,
|
||||
...)
|
||||
{
|
||||
WCHAR Buffer[256];
|
||||
INT Length;
|
||||
va_list ap;
|
||||
|
||||
Length = LoadStringW(hModule, dwMsgId, Buffer, 256);
|
||||
if (Length == 0)
|
||||
return 0;
|
||||
|
||||
va_start(ap, dwMsgId);
|
||||
Length = ConPrintfV(StdOut, Buffer, ap);
|
||||
Length = ConResPrintfExV(StdOut, hModule, dwMsgId,
|
||||
MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL),
|
||||
ap);
|
||||
va_end(ap);
|
||||
|
||||
return Length;
|
||||
|
Reference in New Issue
Block a user