ole32: Initialise data_cf in DataCacheEntry's to zero to indicate no data present on creation.

This commit is contained in:
Rob Shearman 2007-11-10 16:06:24 +00:00 committed by Alexandre Julliard
parent dd527a7d2c
commit 1dc91c41a7
1 changed files with 1 additions and 0 deletions

View File

@ -295,6 +295,7 @@ static HRESULT DataCache_CreateEntry(DataCache *This, const FORMATETC *formatetc
(*cache_entry)->fmtetc.ptd = HeapAlloc(GetProcessHeap(), 0, formatetc->ptd->tdSize);
memcpy((*cache_entry)->fmtetc.ptd, formatetc->ptd, formatetc->ptd->tdSize);
}
(*cache_entry)->data_cf = 0;
(*cache_entry)->stgmedium.tymed = TYMED_NULL;
(*cache_entry)->stgmedium.pUnkForRelease = NULL;
(*cache_entry)->storage = NULL;