11 Jan
2003
11 Jan
'03
1:35 p.m.
"liu spider" <liuspider(a)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.