oleaut32: Correct bug in IRecordInfoImpl_RecordCopy

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Tue Nov 5 18:55:04 CST 2013


Hi,
Patch taken from bug and given original author credit.
Fixes http://bugs.winehq.org/show_bug.cgi?id=33892


Changelog:
     oleaut32: Correct bug in IRecordInfoImpl_RecordCopy


Best Regards
  Alistair Leslie-Hughes
-------------- next part --------------
>From 98aef0c80f55fee6e69b61761e1fbac616c27834 Mon Sep 17 00:00:00 2001
From: Rosen Diankov <rosen.diankov at gmail.com>
Date: Wed, 6 Nov 2013 11:50:01 +1100
Subject: [PATCH] Correct bug in IRecordInfoImpl_RecordCopy
To: wine-patches <wine-patches at winehq.org>

---
 dlls/oleaut32/recinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/oleaut32/recinfo.c b/dlls/oleaut32/recinfo.c
index 04cd377..526392f 100644
--- a/dlls/oleaut32/recinfo.c
+++ b/dlls/oleaut32/recinfo.c
@@ -263,7 +263,7 @@ static HRESULT WINAPI IRecordInfoImpl_RecordCopy(IRecordInfo *iface, PVOID pvExi
     if(!pvExisting || !pvNew)
         return E_INVALIDARG;
 
-    memcpy(pvExisting, pvNew, This->size);
+    memcpy(pvNew, pvExisting, This->size);
     return S_OK;
 }
 
-- 
1.8.3.2



More information about the wine-patches mailing list