Fix Potential Deadlock in LdrLoadDll

Robert Shearman R.J.Shearman at warwick.ac.uk
Thu Feb 12 02:04:06 CST 2004


Alexandre Julliard wrote:
> Robert Shearman <R.J.Shearman at 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.

Yes, never mind. Back to Win32 Syncronization Primitives 101 for me.

> -- 
> Alexandre Julliard
> julliard at winehq.com

Rob



More information about the wine-devel mailing list