Skip to content

Commit 999502c

Browse files
committed
[NETSH] Improve PrintMessageFromModule
Thanks a lot for the hint, Hermès!
1 parent 4dc61a2 commit 999502c

File tree

1 file changed

+3
-6
lines changed
  • base/applications/network/netsh

1 file changed

+3
-6
lines changed

base/applications/network/netsh/netsh.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,16 +235,13 @@ PrintMessageFromModule(
235235
_In_ DWORD dwMsgId,
236236
...)
237237
{
238-
WCHAR Buffer[256];
239238
INT Length;
240239
va_list ap;
241240

242-
Length = LoadStringW(hModule, dwMsgId, Buffer, 256);
243-
if (Length == 0)
244-
return 0;
245-
246241
va_start(ap, dwMsgId);
247-
Length = ConPrintfV(StdOut, Buffer, ap);
242+
Length = ConResPrintfExV(StdOut, hModule, dwMsgId,
243+
MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL),
244+
ap);
248245
va_end(ap);
249246

250247
return Length;

0 commit comments

Comments
 (0)