dlls/kernel32/path.c: Fix return values for UNC pathnames in GetLongPathNameW

Alexandre Hardy alexandre.hardy at gmail.com
Tue Nov 24 07:41:24 CST 2009


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

-- 
--------------------------------------------------
Alexandre Hardy
http://www.ahardy.za.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unc_get_long_name.patch
Type: text/x-patch
Size: 1110 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20091124/913c174f/attachment.bin>


More information about the wine-devel mailing list