Michael Stefaniuc : crypt32: Use assignment instead of memcpy to copy a struct.

Alexandre Julliard julliard at winehq.org
Thu Jan 24 12:59:50 CST 2013


Module: wine
Branch: master
Commit: ab270d433f3e2d43045449ae2fb4fb6ca4b17113
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ab270d433f3e2d43045449ae2fb4fb6ca4b17113

Author: Michael Stefaniuc <mstefani at 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)
                             {




More information about the wine-cvs mailing list