ole32: Zero stg in case ADVF_NODATA is specified.

Otherwise IDataObject_GetData fails before using it in
DataAdviseHolder_SendOnDataChange.
This commit is contained in:
Robert Shearman 2006-08-09 18:15:38 +01:00 committed by Alexandre Julliard
parent 891c83d976
commit f589ec8081
1 changed files with 1 additions and 0 deletions

View File

@ -827,6 +827,7 @@ static HRESULT WINAPI DataAdviseHolder_SendOnDataChange(
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,