ntdll: Avoid one of the calls to getattrlist() when read_directory_getattrlist() checks the case sensitivity of the file system.

Ken Thomases ken at codeweavers.com
Thu May 21 11:13:35 CDT 2015

Extract a new function, get_dir_case_sensitivity_attr_by_id(), from
get_dir_case_sensitivity_attr().  Call that instead of get_dir_case_sensitivity()
from read_directory_getattrlist().  We get the device and file system IDs from
the same getattrlist() call we're already doing, so that avoids an extra call.

Although get_dir_case_sensitivity() has a fallback to a stat()-based function,
it's only used where getattrlist() isn't available or it failed to get the
device or file system IDs.  At the point in read_directory_getattrlist() where
we're calling get_dir_case_sensitivity_attr_by_id(), we've already passed those
dlls/ntdll/directory.c | 62 ++++++++++++++++++++++++++++++++------------------
1 file changed, 40 insertions(+), 22 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ntdll-Avoid-one-of-the-calls-to-getattrlist-when-rea.patch
Type: text/x-patch
Size: 5193 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150521/e5578bfa/attachment.bin>

More information about the wine-patches mailing list