don't copy the buffer to a random pointer in IntWriteConsoleOutput()
Modified: trunk/reactos/lib/kernel32/misc/console.c
_____
Modified: trunk/reactos/lib/kernel32/misc/console.c
--- trunk/reactos/lib/kernel32/misc/console.c 2005-09-26 08:21:38 UTC
(rev 18083)
+++ trunk/reactos/lib/kernel32/misc/console.c 2005-09-26 11:10:27 UTC
(rev 18084)
@@ -1999,7 +1999,6 @@
PCSR_CAPTURE_BUFFER CaptureBuffer;
NTSTATUS Status;
ULONG Size;
- PVOID BufferTargetBase;
Size = dwBufferSize.Y * dwBufferSize.X * sizeof(CHAR_INFO);
@@ -2014,7 +2013,7 @@
(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);