[PATCH 1/5 (try2)] mmdevapi: Initialize global driver data at DLL load time

Andrew Eikum aeikum at codeweavers.com
Mon May 2 08:21:29 CDT 2011


This prevents a race condition if two threads try to create audio
endpoints at the same time.
---

try2: Use DllMain instead of a new function, per Julliard's suggestion.

  dlls/mmdevapi/main.c              |    2 +-
  dlls/winealsa.drv/mmdevdrv.c      |   18 ++++++++++++------
  dlls/winecoreaudio.drv/mmdevdrv.c |   17 +++++++++++------
  dlls/wineoss.drv/mmdevdrv.c       |   17 +++++++++++------
  4 files changed, 35 insertions(+), 19 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mmdevapi-Initialize-global-driver-data-at-DLL-load-t.patch
Type: text/x-patch
Size: 3753 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110502/9b288e0f/attachment.bin>


More information about the wine-patches mailing list