mirror of
https://github.com/vxunderground/VX-API
synced 2026-06-06 16:54:55 +00:00
Rename String Manipulation/RtlInitUnicodeString.cpp to String Manipulation/Windows Unicode Structure/RtlInitUnicodeString.cpp
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
VOID RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
|
||||
{
|
||||
SIZE_T DestSize;
|
||||
|
||||
if (SourceString)
|
||||
{
|
||||
DestSize = StringLengthW(SourceString) * sizeof(WCHAR);
|
||||
DestinationString->Length = (USHORT)DestSize;
|
||||
DestinationString->MaximumLength = (USHORT)DestSize + sizeof(WCHAR);
|
||||
}
|
||||
else
|
||||
{
|
||||
DestinationString->Length = 0;
|
||||
DestinationString->MaximumLength = 0;
|
||||
}
|
||||
|
||||
DestinationString->Buffer = (PWCHAR)SourceString;
|
||||
}
|
||||
Reference in New Issue
Block a user