diff --git a/Contrib/Library/LibraryLocal/LibraryLocal.cpp b/Contrib/Library/LibraryLocal/LibraryLocal.cpp index dad5b000..9ec104c3 100644 --- a/Contrib/Library/LibraryLocal/LibraryLocal.cpp +++ b/Contrib/Library/LibraryLocal/LibraryLocal.cpp @@ -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;