Hirokazu Yamamoto <ocean-c...@m2.ccsnet.ne.jp> added the comment:

About buffer size, GetFinalPathNameByHandle may return the
length or string or the size of required buffer size (the
length of striing + 1) depending on platforms and ANSI/WIDE
version.

If function returns the length of string buffer size,
buf_size + 1 is buffer size. MSDN saids

  cchFilePath [in]

      The size of lpszFilePath, in TCHARs. This value does not include a NULL 
termination character.

so we must pass buf_size + 1 for GetFinalPathNameByHandle.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9927>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to