mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
ntfsdump_logfile.c: Fix incorrectly parenthesized expression.
On big-endian systems the result of the '!=' operation would be endian-swapped rather than the first argument (which must have been the intended action).
This commit is contained in:
parent
55dafda732
commit
0741f54b2e
@ -306,8 +306,8 @@ static void restart_header_sanity(RESTART_PAGE_HEADER *rstr, u8 *buf)
|
||||
"size. Cannot handle this yet.\n");
|
||||
}
|
||||
/* Abort if the version number is not 1.1. */
|
||||
if (sle16_to_cpu(rstr->major_ver != 1) ||
|
||||
sle16_to_cpu(rstr->minor_ver != 1))
|
||||
if (sle16_to_cpu(rstr->major_ver) != 1 ||
|
||||
sle16_to_cpu(rstr->minor_ver) != 1)
|
||||
log_err_exit(buf, "Unknown $LogFile version %i.%i. Only know "
|
||||
"how to handle version 1.1.\n",
|
||||
sle16_to_cpu(rstr->major_ver),
|
||||
|
Loading…
Reference in New Issue
Block a user