[PATCH] winealsa.drv: Enumerate ALSA devices in a single pass
Andrew Eikum
aeikum at codeweavers.com
Mon Apr 9 09:20:31 CDT 2012
This should fix the crash on Francois's test machine. What was happening
was the first pass enumerating the ALSA devices counted N devices, but
during the second pass at least one more device was found, creating
(N+1) devices, which corrupted the heap and died later.
So, just do it all in a single pass and use HeapReAlloc as appropriate.
---
dlls/winealsa.drv/mmdevdrv.c | 96 +++++++++++++++++++++++-------------------
1 file changed, 52 insertions(+), 44 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winealsa.drv-Enumerate-ALSA-devices-in-a-single-pass.patch
Type: text/x-patch
Size: 6527 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120409/95102b4e/attachment.bin>
More information about the wine-patches
mailing list