Skip to content

Commit

Permalink
Just update the reparse check, no code formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
malxau committed Mar 26, 2022
1 parent a4b2c7d commit 4710d52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/treectl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1692,12 +1692,12 @@ TCWP_DrawItem(

} else if (!(view & VIEW_PLUSES) || !(pNode->wFlags & TF_HASCHILDREN)) {
if (bDrawSelected) {
if (pNode->dwAttribs & ATTR_REPARSE_POINT)
if (pNode->dwAttribs & (ATTR_SYMBOLIC | ATTR_JUNCTION))
iBitmap = BM_IND_OPENREPARSE;
else
iBitmap = BM_IND_OPEN;
} else {
if (pNode->dwAttribs & ATTR_REPARSE_POINT)
if (pNode->dwAttribs & (ATTR_SYMBOLIC | ATTR_JUNCTION))
iBitmap = BM_IND_CLOSEREPARSE;
else
iBitmap = BM_IND_CLOSE;
Expand Down
4 changes: 2 additions & 2 deletions src/wfdirrd.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ CreateDTABlockWorker(
iBitmap = BM_IND_CLOSEDFS;
else
{
if (lfndta.fd.dwFileAttributes & ATTR_REPARSE_POINT)
if (lfndta.fd.dwFileAttributes & (ATTR_SYMBOLIC | ATTR_JUNCTION))
iBitmap = BM_IND_CLOSEREPARSE;
else
iBitmap = BM_IND_CLOSE;
Expand All @@ -928,7 +928,7 @@ CreateDTABlockWorker(
} else if (pDoc) {
iBitmap = BM_IND_DOC;
} else {
if (lfndta.fd.dwFileAttributes & ATTR_REPARSE_POINT)
if (lfndta.fd.dwFileAttributes & (ATTR_SYMBOLIC | ATTR_JUNCTION))
iBitmap = BM_IND_FILREPARSE;
else
iBitmap = BM_IND_FIL;
Expand Down
2 changes: 1 addition & 1 deletion src/wfsearch.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ SearchList(
lpxdta->dwAttrs |= ATTR_LOWERCASE;

if (dwAttrs & ATTR_DIR) {
if (dwAttrs & ATTR_REPARSE_POINT)
if (dwAttrs & (ATTR_SYMBOLIC | ATTR_JUNCTION))
iBitmap = BM_IND_CLOSEREPARSE;
else
iBitmap = BM_IND_CLOSE;
Expand Down

0 comments on commit 4710d52

Please sign in to comment.