From 357a9f58c05d043bbfb7eb33046b4e5d8b9f7919 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 10 Jan 2009 22:12:10 +0000 Subject: [PATCH] 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 --- Contrib/Library/LibraryLocal/LibraryLocal.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;