ntdll: Fix buffer allocation check in get_dir_data_space.

Alexandre Julliard julliard at winehq.org
Wed May 4 02:14:33 CDT 2016


Sebastian Lackner <sebastian at fds-team.de> writes:

> BTW: I assume its intentional that you realloc only the first buffer to release
>      some space, right? In the worst case we are wasting up to about
>      PATH_MAX * sizeof(WCHAR) space in the other buffers.

Yes, in the common case it will only waste a few bytes. It's only the
last buffer that can have significant space left.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list