patch for "GetFileTitleW: illegal call to GetFileTitleA"
Dmitry Timoshkov
dmitry at baikal.ru
Sat Jan 11 07:35:16 CST 2003
"liu spider" <liuspider at yahoo.com> wrote:
> this is a patch to get rid of W->A calls:
> GetFileTitleW: illegal call to GetFileTitleA
> + ret = GetFileTitleW(lpwstrFile, lpwstrTitle, cbBuf);
> + HeapFree(GetProcessHeap(), 0, lpwstrTitle);
> + HeapFree(GetProcessHeap(), 0, lpwstrFile);
> + return ret;
> +}
It would be a good idea to translate the result from unicode to ANSI.
One more suggestion: RtlCreateUnicodeStringFromAsciiz is supposed to
reduce trouble of conversion ASCIIZ strings to unicode.
--
Dmitry.
More information about the wine-devel
mailing list