https://bugs.winehq.org/show_bug.cgi?id=37087
--- Comment #6 from Sebastian Lackner sebastian@fds-team.de --- Still present in wine-1.8-rc3-47-gd29dcec.
The patch fixes the problem, but most likely not in the correct way. At the time of the OpenProcess call, there are exactly two references. Those are caused by the ->parent links of two spawned child processes. However, according to https://blogs.msdn.microsoft.com/oldnewthing/20150403-00/?p=44313/ child-processes should not hold a reference to their parent process. I'll try to prepare an improved patch and replace this one.