diff --git a/src/hostapi/wdmks/pa_win_wdmks.c b/src/hostapi/wdmks/pa_win_wdmks.c index 70a48d8ff..2403ed52a 100644 --- a/src/hostapi/wdmks/pa_win_wdmks.c +++ b/src/hostapi/wdmks/pa_win_wdmks.c @@ -2844,6 +2844,10 @@ PaError FilterInitializePins( PaWinWdmFilter* filter ) filter->pins[pinId] = newPin; ++filter->validPinCount; } + else + { + filter->pins[pinId] = 0; + } } if (filter->validPinCount == 0)