mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
052ecc801d1360722d02eee4f6022b7c016baa2d
A careful reading of the GetUserName documentation and Windows Data Types says that lpnSize is "the number of TCHARs copied to the buffer...including the terminating null character," and a TCHAR in this environment is a CHAR because we assume UNICODE is always defined for CoreCLR. A CHAR is a byte. So lpSize is number of bytes, not number of UTF-16 characters as we previously believed.
Description
Automated archival mirror of github.com/PowerShell/PowerShell
221 MiB
Languages
C#
83%
PowerShell
16.1%
Roff
0.6%
Shell
0.2%