ntdll: Fix buffer allocation check in get_dir_data_space.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2016-05-04 01:37:06 +02:00 committed by Alexandre Julliard
parent 09de5d01c5
commit bb48b11508
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ static void *get_dir_data_space( struct dir_data *data, unsigned int size )
struct dir_data_buffer *buffer = data->buffer;
void *ret;
if (!buffer || size >= buffer->size - buffer->pos)
if (!buffer || size > buffer->size - buffer->pos)
{
unsigned int new_size = buffer ? buffer->size * 2 : dir_data_buffer_initial_size;
if (new_size < size) new_size = size;