Commit 4b1d527b authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: Fix a typo in PropertyStorage_WritePropertyToStream that caused the wrong…

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.
parent 2feb43f5
......@@ -1735,7 +1735,7 @@ static HRESULT PropertyStorage_WritePropertyToStream(PropertyStorage_impl *This,
hr = IStream_Write(This->stm, cf_hdr, sizeof(cf_hdr), &count);
if (FAILED(hr))
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))
goto end;
bytesWritten = count + sizeof cf_hdr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment