Add an assert if both arguments to DD_STRUCT_COPY_BYSIZE are equal.

This commit is contained in:
Lionel Ulmer 2005-10-10 19:53:37 +00:00 committed by Alexandre Julliard
parent 3bfeaa9a09
commit 002608224d

View File

@ -46,6 +46,7 @@
DWORD __size = (to)->dwSize; \
DWORD __copysize = __size; \
DWORD __resetsize = __size; \
assert(to != from); \
if (__resetsize > sizeof(*to)) \
__resetsize = sizeof(*to); \
memset(to,0,__resetsize); \