Commit ab13ffa4 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

mmdevapi: Fix wrong blacklist test.

parent 1bf81210
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment