diff
10  const WCHAR* wchar = (const WCHAR*)ptr;
---
10  if (!ptr || *pLength % sizeof(WCHAR) != 0)
11      return FALSE;
12  const WCHAR* wchar = (const WCHAR*)ptr;
