mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-01 22:09:28 +01:00
* changed type of TAbstractSearchRec.name_do_not_touch from untyped pointer
into rawbytestring because otherwise -gt can overwrite it
- removed hack from r25944 in morphos/sysutils.pp that worked around this
problem
git-svn-id: trunk@25952 -
This commit is contained in:
parent
1333edbba4
commit
8fe7d82db7
@ -379,8 +379,6 @@ var
|
||||
validDate: boolean;
|
||||
begin
|
||||
result:=-1; { We emulate Linux/Unix behaviour, and return -1 on errors. }
|
||||
{ Initialize out Rslt, this is a *MUST*, because of caller side magic in objpas/sysutils/filutil.inc }
|
||||
fillchar(Rslt,sizeof(Rslt),0);
|
||||
|
||||
tmpStr:=PathConv(ToSingleByteFileSystemEncodedFileName(Path));
|
||||
|
||||
|
||||
@ -428,8 +428,10 @@ type
|
||||
Size : Int64;
|
||||
Attr : Longint;
|
||||
{ this will be assigned by the generic code; it is actually either a
|
||||
rawbytestring or unicodestring}
|
||||
Name_do_not_touch : pointer;
|
||||
rawbytestring or unicodestring; keep it a reference-counted type
|
||||
so that -gt doesn't overwrite it, the field name should be
|
||||
indication enough that you should not touch it }
|
||||
Name_do_not_touch : RawByteString;
|
||||
ExcludeAttr : Longint;
|
||||
{$ifdef unix}
|
||||
FindHandle : Pointer;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user