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:
parent
09de5d01c5
commit
bb48b11508
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue