> 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
  • Re: Duplicates in /proc/pa... Corinna Vinschen via Cygwin
    • Re: Duplicates in /pr... Brian Inglis
      • RE: Duplicates in... Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
      • Re: Duplicates in... Corinna Vinschen via Cygwin
        • Re: Duplicate... Brian Inglis
        • RE: Duplicate... Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
          • Re: Dupli... Corinna Vinschen via Cygwin
            • RE: ... Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
              • ... Corinna Vinschen via Cygwin
              • ... Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
              • ... Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
              • ... Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
              • ... Corinna Vinschen via Cygwin
              • ... Corinna Vinschen via Cygwin
              • ... Corinna Vinschen via Cygwin
              • ... Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
              • ... Corinna Vinschen via Cygwin
              • ... Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
              • ... Corinna Vinschen via Cygwin
              • ... Corinna Vinschen via Cygwin

Reply via email to