Replace memcpy() with an equal operator to avoid the problem when ActionInfo is changed to non-POD type.