winecoreaudio.drv: Remove superfluous casts of zero.

Michael Stefaniuc mstefani at redhat.de
Sun Mar 28 16:51:48 CDT 2010


---
As I don't have a Mac I cannot even compile test it. It should be fine
though as Apple documents CFIndex as
  typedef signed long CFIndex;



 dlls/winecoreaudio.drv/audio.c |    4 ++--
 dlls/winecoreaudio.drv/midi.c  |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/winecoreaudio.drv/audio.c b/dlls/winecoreaudio.drv/audio.c
index 306a9c8..3f5cece 100644
--- a/dlls/winecoreaudio.drv/audio.c
+++ b/dlls/winecoreaudio.drv/audio.c
@@ -341,8 +341,8 @@ static DWORD WINAPI messageThread(LPVOID p)
 {
     CFMessagePortRef port_ReceiveInMessageThread = (CFMessagePortRef) p;
     CFRunLoopSourceRef source;
-    
-    source = CFMessagePortCreateRunLoopSource(kCFAllocatorDefault, port_ReceiveInMessageThread, (CFIndex)0);
+
+    source = CFMessagePortCreateRunLoopSource(kCFAllocatorDefault, port_ReceiveInMessageThread, 0);
     CFRunLoopAddSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode);
 
     CFRunLoopRun();
diff --git a/dlls/winecoreaudio.drv/midi.c b/dlls/winecoreaudio.drv/midi.c
index 56eff5a..5e6eeae 100644
--- a/dlls/winecoreaudio.drv/midi.c
+++ b/dlls/winecoreaudio.drv/midi.c
@@ -928,7 +928,7 @@ static DWORD WINAPI MIDIIn_MessageThread(LPVOID p)
 
     local = CFMessagePortCreateLocal(kCFAllocatorDefault, MIDIInThreadPortName, &MIDIIn_MessageHandler, NULL, &info);
 
-    source = CFMessagePortCreateRunLoopSource(kCFAllocatorDefault, local, (CFIndex)0);
+    source = CFMessagePortCreateRunLoopSource(kCFAllocatorDefault, local, 0);
     CFRunLoopAddSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode);
 
     CFRunLoopRun();
-- 
1.7.0.2



More information about the wine-patches mailing list