[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-07-13 07:13:21
|
Patches item #945636, was opened at 2004-05-01 07:55 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=945636&group_id=78018 Category: None Group: None >Status: Closed >Resolution: Fixed 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. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2004-07-13 17:13 Message: Logged In: YES user_id=14198 Thanks - checked in, but with a couple of changes. Checking in src/win32apimodule.cpp; new revision: 1.38; previous revision: 1.37 Checking in test/test_win32api.py; new revision: 1.7; previous revision: 1.6 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=945636&group_id=78018 |