Skip to content

Commit dba2ade

Browse files
committed
FIx macro usage
1 parent e059d78 commit dba2ade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phnt/include/ntrtl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ FORCEINLINE VOID RtlInitUnicodeString(
14241424
)
14251425
{
14261426
if (SourceString)
1427-
DestinationString->MaximumLength = (DestinationString->Length = (USHORT)(wcslen(SourceString) * sizeof(WCHAR))) + sizeof(WCHAR);
1427+
DestinationString->MaximumLength = (DestinationString->Length = (USHORT)(wcslen(SourceString) * sizeof(WCHAR))) + sizeof(UNICODE_NULL);
14281428
else
14291429
DestinationString->MaximumLength = DestinationString->Length = 0;
14301430

0 commit comments

Comments
 (0)