Tests for GetLongPathName

Alexandre Julliard julliard at winehq.org
Tue Dec 15 08:37:40 CST 2009


Paul Vriens <paul.vriens.wine at gmail.com> writes:

> Hi Alexandre,
>
> Several file related functions have a maximum path size of 32767 when
> using a "\\?\" prefix. Testing these large paths only works on Windows
> due to Linux having a maximum path limit of 4096.
>
> Does it still make sense to add these tests or should I focus on <=
> 4096? I guess if we/Wine have a limit due to the OS we are running on
> we should probably act the same as that higher limit on Windows?

You can add a couple of tests as todos, but I doubt we'll ever care to
fix it. Most of the tests should concentrate on more reasonable sizes,
something like 2*MAX_PATH to make sure there are no small stack buffers
in the code path.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list