ntdll: In find_file_in_dir(), don't test directory entries' short names if the target...
commita14ed527d858e22cc754a5513eabf7c250eec7a0
authorKen Thomases <ken@codeweavers.com>
Mon, 28 Jul 2014 17:58:23 +0000 (28 12:58 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 30 Jul 2014 16:31:55 +0000 (30 11:31 -0500)
tree97835f0f9971861b668582db85c627f3f77403c4
parent1c23bf04c77fd3f7078c2d836e5c5c39c0ee6280
ntdll: In find_file_in_dir(), don't test directory entries' short names if the target name isn't a short name.

hash_short_file_name() will always create a short name of at least 8 characters
with the 5th being a tilde (~).  If the target name isn't of that form, then it
can never match any short name constructed from the directory entries.
dlls/ntdll/directory.c