Kaydet (Commit) 2240a98e authored tarafından Pierre-André Jacquod's avatar Pierre-André Jacquod Kaydeden (comit) Caolán McNamara

wrong initialization of DdeInstData with memset despite std::vector

Thanks cppchecker for  detecting this
üst 549e54fb
......@@ -43,7 +43,15 @@
DdeInstData* ImpInitInstData()
{
DdeInstData* pData = new DdeInstData;
memset( pData,0,sizeof(DdeInstData) );
pData->nRefCount = 0;
pData->aConnections.clear();
pData->hCurConvSvr = 0;
pData->hDdeInstSvr = 0;
pData->nInstanceSvr = 0;
pData->pServicesSvr = NULL;
pData->hDdeInstCli = 0;
pData-> nInstanceCli = 0;
DdeInstData** ppInst = (DdeInstData**)GetAppData( SHL_SVDDE );
*ppInst = pData;
return pData;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment