Merge pull request #924 from nightmared/fix-utf16-windows

fix an invalid shift in windows processes name UTF16 conversion
pull/935/head
Lomanic 5 years ago committed by GitHub
commit d9f9a85e75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1002,7 +1002,7 @@ func convertUTF16ToString(src []byte) string {
srcIdx := 0
for i := 0; i < srcLen; i++ {
codePoints[i] = uint16(src[srcIdx]) | uint16(src[srcIdx+1]<<8)
codePoints[i] = uint16(src[srcIdx]) | uint16(src[srcIdx+1])<<8
srcIdx += 2
}
return syscall.UTF16ToString(codePoints)

Loading…
Cancel
Save