mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
Add an assert if both arguments to DD_STRUCT_COPY_BYSIZE are equal.
This commit is contained in:
parent
3bfeaa9a09
commit
002608224d
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user