wdmks: ensure that pins that failed creation by PinNew() are set to NULL. Note that PaUtil_AllocateMemory currently calls GlobalAlloc without the GMEM_ZEROINIT flag, so there was no guarantee that filter->pins[pinId] was zero.

This commit is contained in:
Ross Bencina 2020-10-01 14:08:39 +10:00
commit 19f638da5a

View file

@ -2844,6 +2844,10 @@ PaError FilterInitializePins( PaWinWdmFilter* filter )
filter->pins[pinId] = newPin;
++filter->validPinCount;
}
else
{
filter->pins[pinId] = 0;
}
}
if (filter->validPinCount == 0)