This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ocean-city
Recipients ocean-city
Date 2010-09-23.15:46:48
SpamBayes Score 6.3028676e-07
Marked as misclassified No
Message-id <1285256809.86.0.152362460607.issue9927@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-09-23 15:47:26ocean-cityunlinkissue9927 messages
2010-09-23 15:46:49ocean-citysetrecipients: + ocean-city
2010-09-23 15:46:49ocean-citysetmessageid: <1285256809.86.0.152362460607.issue9927@psf.upfronthosting.co.za>
2010-09-23 15:46:48ocean-citylinkissue9927 messages
2010-09-23 15:46:48ocean-citycreate