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

Alexandre Julliard julliard at winehq.org
Tue Nov 24 12:40:24 CST 2009


Module: wine
Branch: master
Commit: 4b1d527b15dc2781feade1378bdce59377b54d11
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4b1d527b15dc2781feade1378bdce59377b54d11

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Tue Nov 24 14:05:06 2009 +0000

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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ole32/stg_prop.c b/dlls/ole32/stg_prop.c
index 1c77c9e..bc45cea 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;




More information about the wine-cvs mailing list