crypt32: Use assignment instead of memcpy to copy a struct.
Michael Stefaniuc
mstefani at redhat.de
Thu Jan 24 08:18:24 CST 2013
---
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)
{
--
1.7.7.6
More information about the wine-patches
mailing list