mirror of https://github.com/FreeRDP/FreeRDP
Fixed allocation size warning.
This commit is contained in:
parent
28220d5b9f
commit
d225b97078
|
@ -222,7 +222,9 @@ void* BufferPool_Take(wBufferPool* pool, int size)
|
|||
|
||||
if (!found)
|
||||
{
|
||||
if (pool->alignment)
|
||||
if (!size)
|
||||
buffer = NULL;
|
||||
else if (pool->alignment)
|
||||
buffer = _aligned_malloc(size, pool->alignment);
|
||||
else
|
||||
buffer = malloc(size);
|
||||
|
|
Loading…
Reference in New Issue