From 5690127b2e9bad351c674b63381236725e91f5a2 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 8 Feb 2014 08:23:03 +0100 Subject: [PATCH] oleaut32: Incorrect sizeof() to MultiByteToWideChar (Coverity). --- dlls/oleaut32/tests/typelib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/oleaut32/tests/typelib.c b/dlls/oleaut32/tests/typelib.c index 84b9023307a..73ec679933e 100644 --- a/dlls/oleaut32/tests/typelib.c +++ b/dlls/oleaut32/tests/typelib.c @@ -3982,12 +3982,12 @@ static void test_dump_typelib(const char *name) /* compare type uuid */ if (ti->uuid && *ti->uuid) { - WCHAR guidW[39] = {0}; + WCHAR guidW[39]; ITypeInfo *typeinfo2; HRESULT hr; GUID guid; - MultiByteToWideChar(CP_ACP, 0, ti->uuid, -1, guidW, 40); + MultiByteToWideChar(CP_ACP, 0, ti->uuid, -1, guidW, sizeof(guidW)/sizeof(guidW[0])); IIDFromString(guidW, &guid); expect_guid(&guid, &typeattr->guid);