From a1862b3701615e23267315fc3ca20e9a84fa36f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Herv=C3=A9=20Poussineau?= Date: Thu, 11 May 2006 22:23:20 +0000 Subject: [PATCH] Fix converting the typelib file name to unicode by using the correct buffer size. svn path=/trunk/; revision=21893 --- reactos/dll/win32/oleaut32/tmarshal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.17.1