Module: wine Branch: master Commit: 1dc91c41a7615f3910df922403280827f314f847 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1dc91c41a7615f3910df922403...
Author: Rob Shearman rob@codeweavers.com Date: Sat Nov 10 16:06:24 2007 +0000
ole32: Initialise data_cf in DataCacheEntry's to zero to indicate no data present on creation.
---
dlls/ole32/datacache.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/datacache.c b/dlls/ole32/datacache.c index 57cbbf5..1b43eb5 100644 --- a/dlls/ole32/datacache.c +++ b/dlls/ole32/datacache.c @@ -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;