Files
vxunderground-VX-API/VX-API/CharStringToWCharString.cpp
T
vxunderground 86ca3658a5 update
2022-09-10 13:20:38 -05:00

14 lines
299 B
C++

#include "StringManipulation.h"
SIZE_T CharStringToWCharString(PWCHAR Destination, PCHAR Source, SIZE_T MaximumAllowed)
{
INT Length = (INT)MaximumAllowed;
while (--Length >= 0)
{
if (!(*Destination++ = *Source++))
return MaximumAllowed - Length - 1;
}
return MaximumAllowed - Length;
}