mirror of
https://github.com/vxunderground/VX-API
synced 2026-06-06 16:54:55 +00:00
Rename String Manipulation/CharStringToWCharString.cpp to String Manipulation/String Conversion/CharStringToWCharString.cpp
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user