From 04a6f81e9f7ea7a800cbfd92e4fe70f100d84917 Mon Sep 17 00:00:00 2001 From: Simon Thoby Date: Tue, 25 Aug 2020 11:59:41 +0200 Subject: [PATCH] fix an invalid shift in windows processes name UTF16 conversion --- process/process_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/process_windows.go b/process/process_windows.go index efb4dc1..9945779 100644 --- a/process/process_windows.go +++ b/process/process_windows.go @@ -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)