mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[NETSTAT] Fix TCP/UDP output. (#1696)
CORE-16151 The underlying StringCchPrintfW() function must use %S for CHAR strings and %s for wide chars. See https://docs.microsoft.com/en-us/cpp/c-runtime-library/format-specification-syntax-printf-and-wprintf-functions?view=vs-2019 for details.
This commit is contained in:
parent
86d4156c39
commit
f6f66fa987
1 changed files with 2 additions and 2 deletions
|
@ -482,7 +482,7 @@ VOID ShowTcpTable(VOID)
|
|||
PID[0] = 0;
|
||||
}
|
||||
|
||||
ConPrintf(StdOut, L" %-6s %-22s %-22s %-11s %s\n", L"TCP",
|
||||
ConPrintf(StdOut, L" %-6s %-22S %-22S %-11s %S\n", L"TCP",
|
||||
Host, Remote, TcpState[tcpTable->table[i].dwState], PID);
|
||||
}
|
||||
}
|
||||
|
@ -536,7 +536,7 @@ VOID ShowUdpTable(VOID)
|
|||
PID[0] = 0;
|
||||
}
|
||||
|
||||
ConPrintf(StdOut, L" %-6s %-22s %-34s %s\n", L"UDP", Host, L"*:*", PID);
|
||||
ConPrintf(StdOut, L" %-6s %-22S %-34s %S\n", L"UDP", Host, L"*:*", PID);
|
||||
}
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, udpTable);
|
||||
|
|
Loading…
Reference in a new issue