Andrey Turkin <[EMAIL PROTECTED]> writes:

> +    if (TargetInformation->TargetName)
> +    {
> +        TargetInformationW->TargetName = buffer;
> +        buffer += MultiByteToWideChar(CP_ACP, 0, 
> TargetInformation->TargetName, -1,
> +                TargetInformationW->TargetName, -1);

You need to pass the correct destination length, not -1.

-- 
Alexandre Julliard
[EMAIL PROTECTED]


Reply via email to