Fully initialise the structure to prevent ill-defined behaviour.
This commit is contained in:
parent
c1cd989450
commit
405abd5b06
|
@ -1475,6 +1475,7 @@ PSFacBuf_CreateProxy(
|
||||||
proxy->ref = 2;
|
proxy->ref = 2;
|
||||||
proxy->tinfo = tinfo;
|
proxy->tinfo = tinfo;
|
||||||
memcpy(&proxy->iid,riid,sizeof(*riid));
|
memcpy(&proxy->iid,riid,sizeof(*riid));
|
||||||
|
proxy->chanbuf = 0;
|
||||||
*ppv = (LPVOID)proxy;
|
*ppv = (LPVOID)proxy;
|
||||||
*ppProxy = (IRpcProxyBuffer *)&(proxy->lpvtbl2);
|
*ppProxy = (IRpcProxyBuffer *)&(proxy->lpvtbl2);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
Loading…
Reference in New Issue