Andrey Turkin andrey.turkin@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.