Fix #2903: ensure CWStringLen contains the length of the array rather than the String