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:
parent
2feb43f573
commit
4b1d527b15
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue