set the MaximumLength in ProbeAndCaptureUnicodeString
authorThomas Bluemel <thomas@reactsoft.com>
Thu, 1 Dec 2005 00:07:35 +0000 (00:07 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Thu, 1 Dec 2005 00:07:35 +0000 (00:07 +0000)
svn path=/trunk/; revision=19793

reactos/ntoskrnl/include/internal/ntoskrnl.h

index fb92bff..7f15784 100644 (file)
@@ -188,6 +188,7 @@ ProbeAndCaptureUnicodeString(OUT PUNICODE_STRING Dest,
 
                     /* Set it as the buffer */
                     Dest->Buffer = Buffer;
+                    Dest->MaximumLength = Dest->Length + sizeof(WCHAR);
                 }
                 else
                 {