[pkg-wine-party] [SCM] Debian Wine packaging branch, lenny, updated. wine-1.0.0-1-126-gccc5cbd

Alexandre Julliard julliard at winehq.org
Thu Oct 30 14:45:06 UTC 2008


The following commit has been merged in the lenny branch:
commit 3a50f8fcaa2ad77f812ebd482ee25d2c91c86e29
Author: Aric Stewart <aric at codeweavers.com>
Date:   Thu Jul 10 11:28:56 2008 +0900

    coreaudio: Make sure Port_SendToMessageThread is not NULL before calling CFMessagePortSendRequest.
    
    Prevents crashing when closing audio device during playback.
    (cherry picked from commit 686ea70c1853aecc235143862b42e6fb09333ed4)

diff --git a/dlls/winecoreaudio.drv/audio.c b/dlls/winecoreaudio.drv/audio.c
index 90d664f..549b69e 100644
--- a/dlls/winecoreaudio.drv/audio.c
+++ b/dlls/winecoreaudio.drv/audio.c
@@ -349,6 +349,9 @@ static void wodSendNotifyCompletionsMessage(WINE_WAVEOUT* wwo)
     CFDataRef data;
     UInt32 buffer;
 
+    if (!Port_SendToMessageThread)
+        return;
+
     buffer = (UInt32) wwo->woID;
 
     data = CFDataCreate(kCFAllocatorDefault, (UInt8 *)&buffer, sizeof(buffer));
@@ -368,6 +371,9 @@ static void wodSendNotifyInputCompletionsMessage(WINE_WAVEIN* wwi)
     CFDataRef data;
     UInt32 buffer;
 
+    if (!Port_SendToMessageThread)
+        return;
+
     buffer = (UInt32) wwi->wiID;
 
     data = CFDataCreate(kCFAllocatorDefault, (UInt8 *)&buffer, sizeof(buffer));
@@ -694,6 +700,9 @@ void CoreAudio_WaveRelease(void)
     /* Stop CFRunLoop in messageThread */
     TRACE("()\n");
 
+    if (!Port_SendToMessageThread)
+        return;
+
     CFMessagePortSendRequest(Port_SendToMessageThread, kStopLoopMessage, NULL, 0.0, 0.0, NULL, NULL);
     CFRelease(Port_SendToMessageThread);
     Port_SendToMessageThread = NULL;

-- 
Debian Wine packaging



More information about the pkg-wine-party mailing list