Added missing wmemcpy to get error message into structure
Changed vector constructor