Module: wine Branch: refs/heads/master Commit: f589ec8081727755664b8e26fb6b07c8f6db77fe URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=f589ec8081727755664b8e26...
Author: Robert Shearman rob@codeweavers.com Date: Wed Aug 9 18:15:38 2006 +0100
ole32: Zero stg in case ADVF_NODATA is specified.
Otherwise IDataObject_GetData fails before using it in DataAdviseHolder_SendOnDataChange.
---
dlls/ole32/oleobj.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/oleobj.c b/dlls/ole32/oleobj.c index f9c8668..7a00d8f 100644 --- a/dlls/ole32/oleobj.c +++ b/dlls/ole32/oleobj.c @@ -827,6 +827,7 @@ static HRESULT WINAPI DataAdviseHold
for(index = 0; index < This->maxCons; index++) { if(This->Connections[index].sink != NULL) { + memset(&stg, 0, sizeof(stg)); if(!(This->Connections[index].advf & ADVF_NODATA)) { TRACE("Calling IDataObject_GetData\n"); res = IDataObject_GetData(pDataObject,