oleaut32: Fix converting file name to Unicode.
Fix converting the typelib file name to Unicode by using the correct buffer size.
This commit is contained in:
parent
7e9ba76da1
commit
05d629264c
|
@ -300,7 +300,7 @@ _get_typeinfo_for_iid(REFIID riid, ITypeInfo**ti) {
|
|||
ERR("Could not get typelib fn?\n");
|
||||
return E_FAIL;
|
||||
}
|
||||
MultiByteToWideChar(CP_ACP, 0, tlfn, -1, tlfnW, -1);
|
||||
MultiByteToWideChar(CP_ACP, 0, tlfn, -1, tlfnW, sizeof(tlfnW) / sizeof(tlfnW[0]));
|
||||
hres = LoadTypeLib(tlfnW,&tl);
|
||||
if (hres) {
|
||||
ERR("Failed to load typelib for %s, but it should be there.\n",debugstr_guid(riid));
|
||||
|
|
Loading…
Reference in New Issue