Replace all le16 "xor" calculations with le16_xor(...).

edge.strict_endians
Erik Larsson 2016-01-28 08:28:56 +01:00
parent cc414d9e8b
commit 1118a56eea
2 changed files with 3 additions and 1 deletions

View File

@ -336,4 +336,6 @@
#define le64_or(a, b) ((a) | (b))
#define le16_xor(a, b) ((a) ^ (b))
#endif /* defined _NTFS_ENDIANS_H */

View File

@ -358,7 +358,7 @@ static char *search_relative(ntfs_inode *ni, ntfschar *path, int count)
} else {
pos += lth;
if (!morelinks
&& !le16_andz(ni->mrec->flags ^ curni->mrec->flags,
&& !le16_andz(le16_xor(ni->mrec->flags, curni->mrec->flags),
MFT_RECORD_IS_DIRECTORY))
ok = FALSE;
if (ntfs_inode_close(curni))