ntdll: Avoid one of the calls to getattrlist() when read_directory_getattrlist()...
commit5514df9d4e4c14cafcc4284e12d26ad6c74709fe
authorKen Thomases <ken@codeweavers.com>
Thu, 21 May 2015 16:13:35 +0000 (21 11:13 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 22 May 2015 05:11:03 +0000 (22 14:11 +0900)
treec6743f3cfecb0944702e45cf7b49add57883ff5f
parentdec7b246f8afe516206f1a34a8d9be5963f14600
ntdll: Avoid one of the calls to getattrlist() when read_directory_getattrlist() checks the case sensitivity of the file system.

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.
dlls/ntdll/directory.c