ole32: Fix a typo in PropertyStorage_WritePropertyToStream that caused the wrong data to be written to the stream.

The field pClipData is a pointer to the data to be written, not the start of it.
This commit is contained in:
Rob Shearman 2009-11-24 14:05:06 +00:00 committed by Alexandre Julliard
parent 2feb43f573
commit 4b1d527b15
1 changed files with 1 additions and 1 deletions

View File

@ -1735,7 +1735,7 @@ static HRESULT PropertyStorage_WritePropertyToStream(PropertyStorage_impl *This,
hr = IStream_Write(This->stm, cf_hdr, sizeof(cf_hdr), &count); hr = IStream_Write(This->stm, cf_hdr, sizeof(cf_hdr), &count);
if (FAILED(hr)) if (FAILED(hr))
goto end; goto end;
hr = IStream_Write(This->stm, &var->u.pclipdata->pClipData, len, &count); hr = IStream_Write(This->stm, var->u.pclipdata->pClipData, len, &count);
if (FAILED(hr)) if (FAILED(hr))
goto end; goto end;
bytesWritten = count + sizeof cf_hdr; bytesWritten = count + sizeof cf_hdr;