We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e059d78 commit dba2adeCopy full SHA for dba2ade
phnt/include/ntrtl.h
@@ -1424,7 +1424,7 @@ FORCEINLINE VOID RtlInitUnicodeString(
1424
)
1425
{
1426
if (SourceString)
1427
- DestinationString->MaximumLength = (DestinationString->Length = (USHORT)(wcslen(SourceString) * sizeof(WCHAR))) + sizeof(WCHAR);
+ DestinationString->MaximumLength = (DestinationString->Length = (USHORT)(wcslen(SourceString) * sizeof(WCHAR))) + sizeof(UNICODE_NULL);
1428
else
1429
DestinationString->MaximumLength = DestinationString->Length = 0;
1430
0 commit comments