[pywin32-bugs] [ pywin32-Patches-945636 ] GetLongPathNameW without MAX_PATH limitation
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2004-04-30 21:55:11
|
Patches item #945636, was opened at 2004-04-30 23:55 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=945636&group_id=78018 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: bastiaan (darquan2000) Assigned to: Nobody/Anonymous (nobody) Summary: GetLongPathNameW without MAX_PATH limitation Initial Comment: PyGetLongPathNameW long unicode pathname support. Unicode paths that start with \?\ can have up to 32767 characters. The current implementation of PyGetLongPathNameW in win32apimodule.cpp does not support long unicode paths, because it uses a pathBuffer of size MAX_PATH and it incorrectly interprets the return value of GetFullPathNameW as a BOOL. The PyGetLongPathNameW function in the attachment has been modified to use an allocated buffer if GetLongPathNameW reports that pathBuffer is too small. It is based on the win32apimodule.cpp of build 201.1. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=945636&group_id=78018 |