Skip to content

Commit 9c61f6b

Browse files
committed
[FIX] : fix for unix
1 parent cbdfe58 commit 9c61f6b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ImGuiFileDialog.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ namespace IGFD
16141614
#ifdef WIN32
16151615
res = *vIter + std::string(1u, PATH_SEP) + res;
16161616
#elif defined(UNIX) // UNIX is LINUX or APPLE
1617-
if (*vIter == s_fs_root)
1617+
if (*vIter == puFsRoot)
16181618
res = *vIter + res;
16191619
else
16201620
res = *vIter + PATH_SEP + res;
@@ -1702,7 +1702,7 @@ namespace IGFD
17021702
else
17031703
{
17041704
#ifdef __linux__
1705-
if (s_fs_root == prCurrentPath)
1705+
if (puFsRoot == prCurrentPath)
17061706
newPath = prCurrentPath + vInfos->fileName;
17071707
else
17081708
#endif // __linux__
@@ -1990,7 +1990,7 @@ namespace IGFD
19901990
if (!filename.empty())
19911991
{
19921992
#ifdef UNIX
1993-
if (s_fs_root != result)
1993+
if (puFsRoot != result)
19941994
#endif // UNIX
19951995
result += std::string(1u, PATH_SEP);
19961996

@@ -2009,7 +2009,7 @@ namespace IGFD
20092009
std::string result = GetResultingPath();
20102010

20112011
#ifdef UNIX
2012-
if (s_fs_root != result)
2012+
if (puFsRoot != result)
20132013
#endif // UNIX
20142014
result += std::string(1u, PATH_SEP);
20152015

0 commit comments

Comments
 (0)