[PATCH 1/2] winecoreaudio.drv: Don't use pointer constants with an integer type. (Clang)

Charles Davis cdavis5x at gmail.com
Fri Feb 19 16:48:08 CST 2016


Signed-off-by: Charles Davis <cdavis5x at gmail.com>
---
 dlls/winecoreaudio.drv/coremidi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winecoreaudio.drv/coremidi.c b/dlls/winecoreaudio.drv/coremidi.c
index 1733418..5ec5646 100644
--- a/dlls/winecoreaudio.drv/coremidi.c
+++ b/dlls/winecoreaudio.drv/coremidi.c
@@ -29,10 +29,10 @@
 
 MIDIClientRef CoreMIDI_CreateClient(CFStringRef name)
 {
-    MIDIClientRef client = NULL;
+    MIDIClientRef client = 0;
 
     if (MIDIClientCreate(name, NULL /* FIXME use notify proc */, NULL, &client) != noErr)
-        return NULL;
+        return 0;
 
     return client;
 }
-- 
2.7.1




More information about the wine-patches mailing list