diff
13  char* utf8 = ConvertWCharNToUtf8Alloc(wchar, *pLength, &utf8_len);
---
13  char* utf8 = ConvertWCharNToUtf8Alloc(wchar, *pLength / sizeof(WCHAR), &utf8_len);
