Fix logic inversion bug in ntfs_extent_inode_open().

Spotted and fixed by Szaka.
This one was particularly dumb as it has been fixed in the NTFS
kernel driver for over half a year but the fix was never propagated
into the library. )-:

(Logical change 1.39)
This commit is contained in:
cantab.net!aia21 2002-12-12 15:02:11 +00:00
parent e1e3e56c54
commit f34b2fa185

View File

@ -284,7 +284,7 @@ ntfs_inode *ntfs_extent_inode_open(ntfs_inode *base_ni, const MFT_REF mref)
ni->nr_extents = -1;
ni->base_ni = base_ni;
/* Attach extent inode to base inode, reallocating memory if needed. */
if (!(base_ni->nr_extents & ~3)) {
if (!(base_ni->nr_extents & 3)) {
i = (base_ni->nr_extents + 4) * sizeof(ntfs_inode *);
extent_nis = (ntfs_inode**)malloc(i);