diff options
author | Erik Faye-Lund <kusmabite@gmail.com> | 2010-11-23 19:38:26 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-11-23 16:06:46 -0800 |
commit | 20c6788aced1237489824db3b25285afed0ad169 (patch) | |
tree | d7822042223a5355f16a6efb3f581dc662a03b48 /t/t5100/.gitattributes | |
parent | msvc: opendir: allocate enough memory (diff) | |
download | tgif-20c6788aced1237489824db3b25285afed0ad169.tar.xz |
msvc: opendir: do not start the search
compat/mingw.c's readdir expects to be the one that starts the search,
and if it isn't, then the first entry will be missing or incorrect.
Fix this by removing the call to _findfirst, and initializing dd_handle
to INVALID_HANDLE_VALUE.
At the same time, make sure we use FindClose instead of _findclose,
which is symmetric to readdir's FindFirstFile. Take into account that
the find-handle might already be closed by readdir.
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5100/.gitattributes')
0 files changed, 0 insertions, 0 deletions