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