mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
don't copy the buffer to a random pointer in IntWriteConsoleOutput()
svn path=/trunk/; revision=18084
This commit is contained in:
parent
fe931cdfe1
commit
c251a38210
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue