windows.globalization: Fix an incorrect sizeof (Coverity).

Signed-off-by: Sven Baars <sbaars@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2021-04-24 13:24:03 +02:00 committed by Alexandre Julliard
parent df1c03a007
commit a8ec44e896
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ static HRESULT STDMETHODCALLTYPE hstring_vector_GetMany(IVectorView_HSTRING *ifa
TRACE("iface %p, start_index %#x, items %p, count %p.\n", iface, start_index, items, count);
memset(items, 0, items_size * sizeof(HSTRING *));
memset(items, 0, items_size * sizeof(*items));
for (i = start_index; i < impl->count && i < start_index + items_size; ++i)
if (FAILED(hr = WindowsDuplicateString(impl->values[i], items + i - start_index)))