winmm: do not unload drivers when the process is terminating [2/2]

Lei Zhang thestig at google.com
Tue Dec 4 21:33:54 CST 2007


Hi,

When winmm's DllMain gets called with fdwReason == DLL_PROCESS_DETACH,
and fImpLoad != NULL, then we should not try to unload the drivers,
because we may call the DriverProc() for a driver that has already
been unloaded earlier.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-winmm-do-not-unload-drivers-when-the-process-is-terminating.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20071204/153cfd5f/attachment.txt 


More information about the wine-patches mailing list