NTSTATUS
MiniMessage (
__in PVOID ConnectionCookie,
__in_bcount_opt (InputBufferSize) PVOID InputBuffer,
__in ULONG InputBufferSize,
__out_bcount_part_opt (OutputBufferSize, * ReturnOutputBufferLength) PVOID OutputBuffer,
__in ULONG OutputBufferSize,
__out PULONG ReturnOutputBufferLength
)
{
PAGED_CODE ();
UNREFERENCED_PARAMETER (ConnectionCookie);
UNREFERENCED_PARAMETER (OutputBufferSize);
UNREFERENCED_PARAMETER (OutputBuffer);
If ((InputBuffer!=NULL) & amp; &
(InputBufferSize & gt;=sizeof (char)))
{
UNICODE_STRING receive;
UNICODE_STRING fuck;
KStr_Init (& amp; The head, MAX_PATH);
KStr_Init (& amp; Tail, MAX_PATH);
CHAR_TO_UNICODE_STRING (InputBuffer (char *), & amp; The receive);
RtlCopyMemory (head. The Buffer, the receive Buffer, 2 * sizeof (WCHAR));
Head. Length=2 * sizeof (WCHAR);
RtlCopyMemory (tail. The Buffer, the receive Buffer + 2 * sizeof (WCHAR), receive the Length - 2 * sizeof (WCHAR));
Tail. Length=receive. Length - 2 * sizeof (WCHAR);
}
Return STATUS_SUCCESS;
}
CodePudding user response:
My wise, change good, his tail intercept the starting location wrong true wisdom