PROTON-742: Windows SChannel buffer copy error: fix length