Commit 541e7ba7 authored by Alexandre Julliard's avatar Alexandre Julliard

server: Fix allocation size (Coverity).

parent c6ac6580
......@@ -600,7 +600,7 @@ static struct ranges *create_ranges(void)
if (!ranges) return NULL;
ranges->count = 0;
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 );
return NULL;
......
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