Skip to content

Commit 2db7995

Browse files
committed
Try to fix.
1 parent 7e7e138 commit 2db7995

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Hexa.NET.ImGui.Widgets/Dialogs/FileUtilities.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -718,15 +718,16 @@ public static FileAttributes OSXConvertStatModeToAttributes(int st_mode, ReadOnl
718718

719719
public const int OSX_DT_DIR = 4;
720720

721-
public const int DARWIN_MAXPATHLEN = 255 + 1;
721+
public const int DARWIN_MAXPATHLEN = 1024;
722722

723723
[StructLayout(LayoutKind.Sequential)]
724724
private unsafe struct OSXDirEnt
725725
{
726-
public uint d_fileno; // Inode number
727-
public ushort d_reclen; // Length of this record
728-
public byte d_type; // Type of file
729-
public byte d_namlen; // Length of this record
726+
public ulong d_ino; // __uint64_t (64-bit file number of entry)
727+
public ulong d_seekoff; // __uint64_t (64-bit seek offset, optional)
728+
public ushort d_reclen; // __uint16_t (length of this record)
729+
public ushort d_namlen; // __uint16_t (length of string in d_name)
730+
public byte d_type; // __uint8_t (file type)
730731
public fixed byte d_name[DARWIN_MAXPATHLEN]; // Filename (null-terminated)
731732

732733
[MethodImpl(MethodImplOptions.AggressiveInlining)]

0 commit comments

Comments
 (0)