Commit 7a6eeb8c authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard

urlmon: Pass correct parameter to realloc and simplify code (Coverity).

parent ed0e5d9f
......@@ -1276,13 +1276,12 @@ static LPDWORD build_zonemap_from_reg(void)
if (used == allocated) {
LPDWORD new_data;
allocated *= 2;
new_data = realloc(data, allocated * sizeof(DWORD));
if (!new_data)
goto cleanup;
memset(new_data + allocated, 0, allocated * sizeof(DWORD));
data = new_data;
allocated *= 2;
}
data[used] = wcstol(name, NULL, 10);
}
......
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