Commit bb48b115 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

ntdll: Fix buffer allocation check in get_dir_data_space.

parent 09de5d01
......@@ -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;
......
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