snmpapi: Add a missing memcpy.

This commit is contained in:
Hans Leidekker 2007-02-18 19:38:01 +01:00 committed by Alexandre Julliard
parent df2c8a2551
commit 4270d13b18

View file

@ -54,6 +54,7 @@ static INT asn_any_copy(AsnAny *dst, AsnAny *src)
UINT length = src->asnValue.string.length;
if (!(stream = HeapAlloc(GetProcessHeap(), 0, length))) return SNMPAPI_ERROR;
memcpy(stream, src->asnValue.string.stream, length);
dst->asnValue.string.stream = stream;
dst->asnValue.string.length = length;