Commit 5690127b authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

oleaut32: Incorrect sizeof() to MultiByteToWideChar (Coverity).

parent dc9de59f
......@@ -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);
......
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