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:
parent
df1c03a007
commit
a8ec44e896
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue