"liu spider" liuspider@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.