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

This commit is contained in:
Marcus Meissner 2014-02-08 08:23:03 +01:00 committed by Alexandre Julliard
parent dc9de59f7f
commit 5690127b2e
1 changed files with 2 additions and 2 deletions

View File

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