set the MaximumLength in ProbeAndCaptureUnicodeString
Modified: trunk/reactos/ntoskrnl/include/internal/ntoskrnl.h
_____
Modified: trunk/reactos/ntoskrnl/include/internal/ntoskrnl.h
--- trunk/reactos/ntoskrnl/include/internal/ntoskrnl.h 2005-11-30
23:33:29 UTC (rev 19792)
+++ trunk/reactos/ntoskrnl/include/internal/ntoskrnl.h 2005-12-01
00:07:35 UTC (rev 19793)
@@ -188,6 +188,7 @@
/* Set it as the buffer */
Dest->Buffer = Buffer;
+ Dest->MaximumLength = Dest->Length + sizeof(WCHAR);
}
else
{
Show replies by date