http://bugs.winehq.org/show_bug.cgi?id=33555
--- Comment #2 from Anastasius Focht focht@gmx.net 2013-05-10 05:44:02 CDT --- Hello Dmitry,
--- quote --- Does the attached patch help? --- quote ---
Yep, the regsvr32 process terminates now with the additional threads gone.
--- snip --- ... Successfully registered DLL PAWLegacy.dll 002b:Call KERNEL32.FreeLibrary(10000000) ret=7effc945 002b:Ret KERNEL32.FreeLibrary() retval=00000001 ret=7effc945 002b:Call ole32.OleUninitialize() ret=7effcfc3 ... 002b:Ret ole32.OleUninitialize() retval=00000000 ret=7effcfc3 002b:Call KERNEL32.ExitProcess(00000000) ret=7effd062 002b:Call PE DLL (proc=0x7907e547,module=0x79060000 L"mscorjit.dll",reason=PROCESS_DETACH,res=0x1) ... 002b:Call PE DLL (proc=0x19082444,module=0x19000000 L"Pchlib32.dll",reason=PROCESS_DETACH,res=0x1) ... 002b:Call ole32.CoUninitialize() ret=19060f90 002b:Call KERNEL32.SetEvent(0000021c) ret=7ecb54f0 002b:Ret KERNEL32.SetEvent() retval=00000001 ret=7ecb54f0 002b:Call KERNEL32.WaitForSingleObject(00000224,ffffffff) ret=7ecb5509 002b:Ret KERNEL32.WaitForSingleObject() retval=00000000 ret=7ecb5509 002b:Call KERNEL32.CloseHandle(0000021c) ret=7ecb5536 002b:Ret KERNEL32.CloseHandle() retval=00000001 ret=7ecb5536 002b:Call KERNEL32.CloseHandle(00000224) ret=7ecb5547 002b:Ret KERNEL32.CloseHandle() retval=00000001 ret=7ecb5547 002b:Call ntdll.RtlFreeHeap(00110000,00000000,039cadc8) ret=7ecb5571 002b:Ret ntdll.RtlFreeHeap() retval=00000001 ret=7ecb5571 002b:Call KERNEL32.RaiseException(c0020001,00000001,00000001,0032f874) ret=7a05a203 002b:trace:seh:raise_exception code=c0020001 flags=1 addr=0x7b83aabb ip=7b83aabb tid=002b 002b:trace:seh:raise_exception info[0]=8007042b 002b:trace:seh:raise_exception eax=7b826979 ebx=7b8ba000 ecx=8007042b edx=0032f778 esi=0032f86c edi=0032f7e0 002b:trace:seh:raise_exception ebp=0032f7b8 esp=0032f754 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00000287 002b:trace:seh:call_stack_handlers calling handler at 0x190824c9 code=c0020001 flags=1 002b:Call msvcrt._except_handler4_common(190b7988,19082832,0032f760,0032fb0c,0032f3f0,0032f2bc) ret=190824e9 ... 002b:Ret msvcrt._except_handler4_common() retval=00000001 ret=190824e9 002b:trace:seh:__regs_RtlUnwind handler at 0x190824c9 returned 1 002b:exception in PE entry point (proc=0x19082444,module=0x19000000,reason=PROCESS_DETACH,res=0x1) 002b:Ret PE DLL (proc=0x19082444,module=0x19000000 L"Pchlib32.dll",reason=PROCESS_DETACH,res=0x1) retval=0 ... --- snip ---
Regards