You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SwiftWin32: compensate for GetComputerNameW's disregard of the null terminator
### Issue
`GetComputerNameW` disregards the null terminator when returning the
size of the buffer. This leads to the following error when using
`Device.name`:
`Swift/CString.swift:284: Fatal error: input of
decodeCString(_:as:repairingInvalidCodeUnits:) must be null-terminated`
### Solution
Compensated the buffer size to account for the null terminator.
0 commit comments