[PATCH 15/15] mmdevapi: Fix wrong blacklist tests

Maarten Lankhorst m.b.lankhorst at gmail.com
Fri Apr 16 03:20:36 CDT 2010


---
 dlls/mmdevapi/devenum.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/mmdevapi/devenum.c b/dlls/mmdevapi/devenum.c
index 4208cc8..977f25a 100644
--- a/dlls/mmdevapi/devenum.c
+++ b/dlls/mmdevapi/devenum.c
@@ -749,12 +749,12 @@ static int blacklist_pulse;
 
 static int blacklist(const char *dev) {
 #ifdef __linux__
-    if (strncmp(dev, "OSS ", 4))
+    if (!strncmp(dev, "OSS ", 4))
         return 1;
 #endif
     if (blacklist_pulse && !strncmp(dev, "PulseAudio ", 11))
         return 1;
-    if (strstr(dev, "ALSA") && strstr(dev, "hw:"))
+    if (!strncmp(dev, "ALSA ", 5) && strstr(dev, "hw:"))
         return 1;
     return 0;
 }
-- 
1.7.0


--------------030402020508080400070203--



More information about the wine-patches mailing list