Commit 00260822 authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

Add an assert if both arguments to DD_STRUCT_COPY_BYSIZE are equal.

parent 3bfeaa9a
......@@ -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); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment