mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
ntfsck.c: Fix comparison between little-endian and native-endian data.
This comparison would yield the wrong result on big-endian systems.
This commit is contained in:
parent
ef09702b0c
commit
ec18534f31
@ -608,7 +608,7 @@ static BOOL check_file_record(u8 *buffer, u16 buflen)
|
||||
|
||||
|
||||
// We should know all the flags.
|
||||
if (mft_rec->flags>0xf) {
|
||||
if (le16_to_cpu(mft_rec->flags) > 0xf) {
|
||||
check_failed("Unknown MFT record flags (0x%x).\n",
|
||||
(unsigned int)le16_to_cpu(mft_rec->flags));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user