copy the buffer to the right place 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 11:14:34 UTC
(rev 18086)
+++ trunk/reactos/lib/kernel32/misc/console.c 2005-09-26 11:35:23 UTC
(rev 18087)
@@ -2013,7 +2013,7 @@
(PVOID*)&Request.Data.WriteConsoleOutputRequest.CharInfo);
/* Copy from the buffer */
- RtlCopyMemory(&Request.Data.WriteConsoleOutputRequest.CharInfo,
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);
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);