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:
Erik Larsson 2016-01-27 15:21:05 +01:00
parent ef09702b0c
commit ec18534f31

View File

@ -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));
}