X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fdll%2Fwin32%2Foleaut32%2Ftmarshal.c;h=de6e75b500e88c7246baed86cc16d3dbf6242935;hp=249524a5c5c146113ec3809f802438e65e1aa607;hb=a1862b3701615e23267315fc3ca20e9a84fa36f8;hpb=3ed19e828715e55a1ef022d0329975cc08bd9d7c diff --git a/reactos/dll/win32/oleaut32/tmarshal.c b/reactos/dll/win32/oleaut32/tmarshal.c index 249524a5c5c..de6e75b500e 100644 --- a/reactos/dll/win32/oleaut32/tmarshal.c +++ b/reactos/dll/win32/oleaut32/tmarshal.c @@ -283,7 +283,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));