since we're already using winchar...

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5898 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2009-01-10 22:12:10 +00:00
parent de19959620
commit 357a9f58c0

View file

@ -32,8 +32,7 @@ int GetTLBVersion(string& filepath, DWORD& high, DWORD & low)
if (!GetFullPathName(filepath.c_str(), sizeof(fullpath), fullpath, &p))
return 0;
wchar_t ole_filename[1024];
MultiByteToWideChar(CP_ACP, 0, fullpath, lstrlen(fullpath) + 1, ole_filename, 1024);
WCHAR *ole_filename = winchar_fromansi(fullpath);
ITypeLib* typeLib;
HRESULT hr;