mirror of
https://github.com/vxunderground/VX-API
synced 2026-06-06 16:54:55 +00:00
14 lines
299 B
C++
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;
|
|
} |