Commit 05d62926 authored by Thomas Weidenmueller's avatar Thomas Weidenmueller Committed by Alexandre Julliard

oleaut32: Fix converting file name to Unicode.

Fix converting the typelib file name to Unicode by using the correct buffer size.
parent 7e9ba76d
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment