From c251a38210dae3b275fd0b4413261b2e4994c0dc Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Mon, 26 Sep 2005 11:10:27 +0000 Subject: [PATCH] don't copy the buffer to a random pointer in IntWriteConsoleOutput() svn path=/trunk/; revision=18084 --- reactos/lib/kernel32/misc/console.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/lib/kernel32/misc/console.c b/reactos/lib/kernel32/misc/console.c index 8a3dbae38d9..fbef7848ed1 100644 --- a/reactos/lib/kernel32/misc/console.c +++ b/reactos/lib/kernel32/misc/console.c @@ -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);