http://bugs.winehq.org/show_bug.cgi?id=33892
Bug #: 33892 Summary: major bugfix in IRecordInfoImpl_RecordCopy Product: Wine Version: 1.6-rc3 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: oleaut32 AssignedTo: wine-bugs@winehq.org ReportedBy: rosen.diankov@gmail.com Classification: Unclassified
the following function in oleaut32/recinfo.c
static HRESULT WINAPI IRecordInfoImpl_RecordCopy(IRecordInfo *iface, PVOID pvExisting, PVOID pvNew)
needs to copy stuff from pvExisting to pvNew, however it was doing the opposite! The fix is simple, just do:
memcpy(pvNew, pvExisting, This->size);