don't copy the buffer to a random pointer in IntWriteConsoleOutput()

svn path=/trunk/; revision=18084
This commit is contained in:
Thomas Bluemel 2005-09-26 11:10:27 +00:00
parent fe931cdfe1
commit c251a38210

View file

@ -1999,7 +1999,6 @@ IntWriteConsoleOutput(HANDLE hConsoleOutput,
PCSR_CAPTURE_BUFFER CaptureBuffer;
NTSTATUS Status;
ULONG Size;
PVOID BufferTargetBase;
Size = dwBufferSize.Y * dwBufferSize.X * sizeof(CHAR_INFO);
@ -2014,7 +2013,7 @@ IntWriteConsoleOutput(HANDLE hConsoleOutput,
(PVOID*)&Request.Data.WriteConsoleOutputRequest.CharInfo);
/* Copy from the buffer */
RtlCopyMemory(BufferTargetBase, lpBuffer, Size);
RtlCopyMemory(&Request.Data.WriteConsoleOutputRequest.CharInfo, lpBuffer, Size);
/* Set up the data to send to the Console Server */
CsrRequest = MAKE_CSR_API(WRITE_CONSOLE_OUTPUT, CSR_CONSOLE);