From 45bd9c1628c0759505cba64e5e44ebff31dd5cb1 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sat, 14 Apr 2012 11:15:43 +0200 Subject: [PATCH] Fix two gcc warnings in src/ntfs_dir.c --- src/ntfs_dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c index 82f4fd08..fcf542cf 100644 --- a/src/ntfs_dir.c +++ b/src/ntfs_dir.c @@ -235,10 +235,10 @@ static int ntfs_td_list_entry( struct ntfs_dir_struct *ls, const ntfschar *name ctx_si = ntfs_attr_get_search_ctx(ni, ni->mrec); if (ctx_si) { - if (ntfs_attr_lookup(AT_STANDARD_INFORMATION, AT_UNNAMED, 0, 0, 0, NULL, 0, ctx_si)==0) + if (ntfs_attr_lookup(AT_STANDARD_INFORMATION, AT_UNNAMED, 0, CASE_SENSITIVE, 0, NULL, 0, ctx_si)==0) { const ATTR_RECORD *attr = ctx_si->attr; - const STANDARD_INFORMATION *si = (STANDARD_INFORMATION*)((char*)attr + + const STANDARD_INFORMATION *si = (const STANDARD_INFORMATION*)((const char*)attr + le16_to_cpu(attr->value_offset)); if(si) {