*utf8 = (char *) HeapAlloc(GetProcessHeap(), 0, size);\r
if (! *utf8) return 2;\r
\r
- if (! WideCharToMultiByte(CP_UTF8, 0, utf16, -1, (LPSTR) utf8, size, NULL, NULL)) {\r
+ if (! WideCharToMultiByte(CP_UTF8, 0, utf16, -1, *utf8, size, NULL, NULL)) {\r
HeapFree(GetProcessHeap(), 0, *utf8);\r
*utf8 = 0;\r
return 3;\r