> The directory handle is used (indirectly) in NtOpenFile() through the > attributes, and > I wonder if that call somehow distorts the internal position within the > handle, and so > it restarts from the wrong internal position in the outer loop.
And I just confirmed that if I print the context right before NtOpenFile(), and just do the "continue", I do not see the by-one increments in it, and the number of lines printed seems to match the actual number of drives that I have, without the duplicates: $ ./proc_partition context = 282 context = 299 context = 313 context = 329 context = 339 context = 352 Anton Lavrentiev Contractor NIH/NLM/NCBI -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple