dlls/kernel32/path.c: Fix return values for UNC pathnames in GetLongPathNameW
Paul Vriens
paul.vriens.wine at gmail.com
Sat Nov 28 04:16:20 CST 2009
On 11/24/2009 02:41 PM, Alexandre Hardy wrote:
> The MSDN:
> http://msdn.microsoft.com/en-us/library/aa364980(VS.85).aspx
> states that GetLongPathNameW returns the length of the string
> required to hold the pathname if the buffer is too small to hold
> the path. In the case where the buffer is too small, the filename
> should not be stored in the buffer.
>
> This ensures that the buffer is not written to (for UNC pathnames)
> if the buffer is not large enought to store the path.
>
> Kind regards
> Alexandre
>
Hi Alexandre,
Patches should go to wine-patches unless your asking for some guidance
or comments.
This one should also be accompanied with some tests.
--
Cheers,
Paul.
More information about the wine-devel
mailing list