Using standard wchar string functions instead of winchar_*
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6072 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
b9a5d24705
commit
f7f4d2f033
10 changed files with 72 additions and 69 deletions
|
@ -47,8 +47,9 @@ int GetTLBVersion(tstring& filepath, DWORD& high, DWORD & low)
|
|||
hr = LoadTypeLib(fullpath, &typeLib);
|
||||
#else
|
||||
// If built without UNICODE, we still need to convert this string to a Unicode string.
|
||||
WCHAR *ole_filename = winchar_fromTchar(fullpath);
|
||||
WCHAR *ole_filename = wcsdup_fromTchar(fullpath, CP_ACP);
|
||||
hr = LoadTypeLib(ole_filename, &typeLib);
|
||||
free(ole_filename);
|
||||
#endif
|
||||
|
||||
if (SUCCEEDED(hr)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue