From 5073c262ee3c6a00950efdb822d4943a305c8bdf Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Thu, 1 Dec 2005 00:07:35 +0000 Subject: [PATCH] set the MaximumLength in ProbeAndCaptureUnicodeString svn path=/trunk/; revision=19793 --- reactos/ntoskrnl/include/internal/ntoskrnl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/ntoskrnl/include/internal/ntoskrnl.h b/reactos/ntoskrnl/include/internal/ntoskrnl.h index fb92bffe5b8..7f15784f329 100644 --- a/reactos/ntoskrnl/include/internal/ntoskrnl.h +++ b/reactos/ntoskrnl/include/internal/ntoskrnl.h @@ -188,6 +188,7 @@ ProbeAndCaptureUnicodeString(OUT PUNICODE_STRING Dest, /* Set it as the buffer */ Dest->Buffer = Buffer; + Dest->MaximumLength = Dest->Length + sizeof(WCHAR); } else {