http://bugs.winehq.org/show_bug.cgi?id=59722 --- Comment #2 from Bernhard Übelacker <bernhardu@mailbox.org> --- Created attachment 80879 --> http://bugs.winehq.org/attachment.cgi?id=80879 debugging.txt Hello, I tried if I could debug this and here calling the reproducer.exe from a unix terminal gets me two conhost.exe processes. The second gets started in cmd.exe in init_console/alloc_console. This second conhost.exe gets started with current directory in cwd_test, therefore the directory cannot be deleted. Attached file contains some notes with backtraces of interesting events. At the bottom is s simple patch to start the conhost processes with current directory of c:\windows\system32, and it stopped showing me the failure on RemoveDirectory. Can you please check if this fixes the issue also with msys2? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.