Krishna Murthy Krishna.Murthy@guptaworldwide.com writes:
It looks like in bug 1435 they wanted to avoid triggering of error if no more files found. But could not understand why they wanted to avoid triggering of error when the specified filename does not exists. In MS windows if File Not found, then it returns error. So we could satisfy both by just doing the following check:
if (le != ERROR_NO_MORE_FILES) return LB_ERR;
So the above condition triggers error for all the error conditions except for ERROR_NO_MORE_FILES.
Which is exactly what the code looked like before the fix for bug 1435, so you will just reintroduce the bug. This needs more investigating...