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:
parent
e90b19ef2b
commit
19f638da5a
1 changed files with 4 additions and 0 deletions
|
|
@ -2844,6 +2844,10 @@ PaError FilterInitializePins( PaWinWdmFilter* filter )
|
||||||
filter->pins[pinId] = newPin;
|
filter->pins[pinId] = newPin;
|
||||||
++filter->validPinCount;
|
++filter->validPinCount;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
filter->pins[pinId] = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filter->validPinCount == 0)
|
if (filter->validPinCount == 0)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue