mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: Ability to handle long paths for zip archiver (issue #1581)
(cherry picked from commit 5a48d0b603)
This commit is contained in:
parent
b2c0cb52fb
commit
6e9c699241
1 changed files with 2 additions and 1 deletions
|
|
@ -38,6 +38,7 @@ interface
|
|||
uses
|
||||
{$IFDEF MSWINDOWS}
|
||||
Windows,
|
||||
DCWindows,
|
||||
DCConvertEncoding,
|
||||
{$ENDIF}
|
||||
{$IFDEF LibcAPI}
|
||||
|
|
@ -1261,7 +1262,7 @@ begin
|
|||
aAttr.Attr := -1;
|
||||
aAttr.Mode := 0;
|
||||
{$IFDEF MSWINDOWS}
|
||||
Result := GetFileAttributesExW(PWideChar(CeUtf8ToUtf16(aFileName)), GetFileExInfoStandard, @FindData);
|
||||
Result := GetFileAttributesExW(PWideChar(UTF16LongName(aFileName)), GetFileExInfoStandard, @FindData);
|
||||
if Result then begin
|
||||
aAttr.Time := WinFileTimeToDateTime(FindData.ftLastWriteTime);
|
||||
LARGE_INTEGER(aAttr.Size).LowPart := FindData.nFileSizeLow;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue