Fix errors on compressed NTFS with 512B clusters.

* include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
	types.
	* grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
	not 0.
	* grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
	Relax check for inline extents.
	(ntfscomp): Return correct -1 on error and not 0.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-05-04 17:37:17 +02:00
parent 4f8e368fc0
commit 1b8463f2c4
4 changed files with 23 additions and 10 deletions

View file

@ -181,10 +181,10 @@ struct grub_ntfs_rlst
typedef grub_err_t (*grub_ntfscomp_func_t) (struct grub_ntfs_attr * at,
char *dest,
grub_uint32_t ofs,
grub_uint32_t len,
grub_disk_addr_t ofs,
grub_size_t len,
struct grub_ntfs_rlst * ctx,
grub_uint32_t vcn);
grub_disk_addr_t vcn);
extern grub_ntfscomp_func_t grub_ntfscomp_func;