Skip to content

Commit 7e7e138

Browse files
committed
.
1 parent 3ccbb42 commit 7e7e138

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

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

719719
public const int OSX_DT_DIR = 4;
720720

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

723723
[StructLayout(LayoutKind.Sequential)]
724724
private unsafe struct OSXDirEnt
725725
{
726-
public ulong d_ino; // Inode number
727-
public ulong d_off; // Offset to the next dirent
726+
public uint d_fileno; // Inode number
728727
public ushort d_reclen; // Length of this record
729-
public ushort d_namlen; // Length of this record
730728
public byte d_type; // Type of file
729+
public byte d_namlen; // Length of this record
731730
public fixed byte d_name[DARWIN_MAXPATHLEN]; // Filename (null-terminated)
732731

733732
[MethodImpl(MethodImplOptions.AggressiveInlining)]

0 commit comments

Comments
 (0)