Skip to content

Commit 6101b43

Browse files
committed
[FIX] : fix pppup path with dirent.h
1 parent e1a335a commit 6101b43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ImGuiFileDialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,10 +1670,10 @@ namespace IGFD
16701670
{
16711671
struct dirent* ent = files[i];
16721672

1673-
if (ent->d_type == 'd')
1673+
if (ent->d_type == DT_DIR)
16741674
{
16751675
auto fileNameExt = ent->d_name;
1676-
AddPath(vFileDialogInternal, path, fileNameExt, fileType);
1676+
AddPath(vFileDialogInternal, path, fileNameExt, 'd');
16771677
}
16781678
}
16791679

0 commit comments

Comments
 (0)