http://bugs.winehq.org/show_bug.cgi?id=17181
--- Comment #2 from Dan Kegel dank@kegel.com 2009-01-29 22:42:55 --- Easiest testcase is mkdir testdir mkdir testdir/dir1 mkdir testdir/dir2 wine rm.com /s testdir This fails to see dir2, so the delete of testdir fails.
It seems that the rmdir of dir1 messes with FINDNEXT's mind. FINDNEXT dutifully skips forward dta->count entries to get back where it was... but that's one too far now. rmdir dir1 has to decrement dta->count somehow if dir1 is before the mark. Fun!