Robert Shearman R.J.Shearman@warwick.ac.uk writes:
This patch fixes a potential deadlock in LdrLoadDll as it tries to call LdrUnloadDll with the loader lock held, resulting in deadlock once LdrUnloadDll also tries to enter the loader critical section. This only happens on process_attach failure.
This cannot deadlock, a critical section is reentrant. There must be some other issue here.