Andrey Turkin <andrey.turkin(a)gmail.com> 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
julliard(a)winehq.org