set the MaximumLength in ProbeAndCaptureUnicodeString

svn path=/trunk/; revision=19793
This commit is contained in:
Thomas Bluemel 2005-12-01 00:07:35 +00:00
parent a3d1f19ffd
commit 5073c262ee

View file

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