Michael Stefaniuc : crypt32: Use assignment instead of memcpy to copy a struct.
Module: wine Branch: master Commit: ab270d433f3e2d43045449ae2fb4fb6ca4b17113 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ab270d433f3e2d43045449ae2f... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Thu Jan 24 15:18:24 2013 +0100 crypt32: Use assignment instead of memcpy to copy a struct. --- dlls/crypt32/decode.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/dlls/crypt32/decode.c b/dlls/crypt32/decode.c index a4934a7..e5f8baf 100644 --- a/dlls/crypt32/decode.c +++ b/dlls/crypt32/decode.c @@ -692,8 +692,7 @@ static BOOL CRYPT_AsnDecodeArray(const struct AsnArrayDescriptor *arrayDesc, CryptMemAlloc( cItems * sizeof(struct AsnArrayItemSize)); if (itemSizes) - memcpy(itemSizes, &itemSize, - sizeof(itemSize)); + *itemSizes = itemSize; } if (itemSizes) {
participants (1)
-
Alexandre Julliard