Maarten Lankhorst : mmdevapi: Fix wrong blacklist test.
Module: wine Branch: master Commit: ab13ffa454807f9d1f3a5f0723aeb8e77756f66a URL: http://source.winehq.org/git/wine.git/?a=commit;h=ab13ffa454807f9d1f3a5f0723... Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Fri Apr 16 10:20:36 2010 +0200 mmdevapi: Fix wrong blacklist test. --- 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 41011e7..e778ab0 100644 --- a/dlls/mmdevapi/devenum.c +++ b/dlls/mmdevapi/devenum.c @@ -736,12 +736,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; }
participants (1)
-
Alexandre Julliard