server: Fix allocation size (Coverity).
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c6ac658019
commit
541e7ba79a
|
@ -600,7 +600,7 @@ static struct ranges *create_ranges(void)
|
||||||
if (!ranges) return NULL;
|
if (!ranges) return NULL;
|
||||||
ranges->count = 0;
|
ranges->count = 0;
|
||||||
ranges->max = 8;
|
ranges->max = 8;
|
||||||
if (!(ranges->ranges = mem_alloc( ranges->max * sizeof(ranges->ranges) )))
|
if (!(ranges->ranges = mem_alloc( ranges->max * sizeof(*ranges->ranges) )))
|
||||||
{
|
{
|
||||||
release_object( ranges );
|
release_object( ranges );
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue