Charles Davis : winecoreaudio.drv: Don' t use pointer constants with an integer type (Clang).

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 23 11:24:20 CST 2016


Module: wine
Branch: master
Commit: c8e87bd87831bed62fb01d68def5dd568bcaeb89
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c8e87bd87831bed62fb01d68def5dd568bcaeb89

Author: Charles Davis <cdavis5x at gmail.com>
Date:   Fri Feb 19 15:48:08 2016 -0700

winecoreaudio.drv: Don't use pointer constants with an integer type (Clang).

Signed-off-by: Charles Davis <cdavis5x at gmail.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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;
 }




More information about the wine-cvs mailing list