Commit 3b0dd88
Initialize *ppv in comhost DllGetClassObject (#128916)
`DllGetClassObject` in `src/native/corehost/comhost/comhost.cpp` had
failure paths (CLSID not in map, `get_com_delegate` failure) that
returned a failure HRESULT without writing to `*ppv`, violating the COM
contract that out parameters must always be initialized.
Null it out on function entry.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: elinor-fung <47805090+elinor-fung@users.noreply.github.com>1 parent b0f76ec commit 3b0dd88
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
201 | 207 | | |
202 | 208 | | |
203 | 209 | | |
| |||
0 commit comments