winmm: Dont load drivers in DllMain

Maarten Lankhorst m.b.lankhorst at gmail.com
Mon Mar 15 08:34:11 CDT 2010


Wait till they are actually used, and only init in that case
---
Fixes a circular dependency problem that occurs when I wrote a 
mmdevapi-based waveout driver. MMdevapi uses the winmm timer, and winmm 
uses mmdevapi for waveout, so if mmdevapi is loaded before winmm, it 
pulls in winmm, that runs some methods from mmdevapi before its DllMain 
has run.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0021-winmm-Dont-load-drivers-in-DllMain.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100315/b3458490/attachment.txt>


More information about the wine-patches mailing list