Re: patch for "GetFileTitleW: illegal call to GetFileTitleA"
"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.
--- Dmitry Timoshkov <dmitry(a)baikal.ru> wrote:
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.
Thanks for your clues, I will make it. liuspider __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
participants (2)
-
Dmitry Timoshkov -
liu spider