From 4b1d527b15dc2781feade1378bdce59377b54d11 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Tue, 24 Nov 2009 14:05:06 +0000 Subject: [PATCH] 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. --- dlls/ole32/stg_prop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/stg_prop.c b/dlls/ole32/stg_prop.c index 1c77c9e2d3..bc45cea70c 100644 --- a/dlls/ole32/stg_prop.c +++ b/dlls/ole32/stg_prop.c @@ -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; -- 2.32.0.93.g670b81a890