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:
Thomas Weidenmueller 2006-05-12 00:07:59 +02:00 committed by Alexandre Julliard
parent 7e9ba76da1
commit 05d629264c
1 changed files with 1 additions and 1 deletions

View File

@ -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));