ole32: Avoid a deadlock when a being loaded DLL calls CoRegisterClassObject from its DLL_PROCESS_ATTACH handler.
dmitry at baikal.ru
Thu Feb 7 02:29:58 CST 2013
The patch originally has been created by Alexander Morozov, and
I've found it while trying to fix a similar problem.
CoRegisterClassObject calls RPC_StartLocalServer which creates
a thread, and does an infinite wait on its handle in order to allow
the thread finish creating a pipe. This leads to a deadlock in
the PE loader's 'loader_section'. The wait could be avoided by
moving the CreateNamedPipeW call out of the thread proc.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4004 bytes
Desc: not available
More information about the wine-patches