Fixed passed-by-value struct argument contains uninitialized data.

As title. Please review, thanks.