Author: hbelusca
Date: Sat Mar 9 14:18:10 2013
New Revision: 58449
URL:
http://svn.reactos.org/svn/reactos?rev=58449&view=rev
Log:
[KERNEL32]
Further correct 4 console winetests.
Modified:
branches/ros-csrss/dll/win32/kernel32/client/console/readwrite.c
Modified: branches/ros-csrss/dll/win32/kernel32/client/console/readwrite.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-csrss/dll/win32/kernel32/cl…
==============================================================================
--- branches/ros-csrss/dll/win32/kernel32/client/console/readwrite.c [iso-8859-1]
(original)
+++ branches/ros-csrss/dll/win32/kernel32/client/console/readwrite.c [iso-8859-1] Sat Mar
9 14:18:10 2013
@@ -501,12 +501,6 @@
PCSR_CAPTURE_BUFFER CaptureBuffer;
DWORD Size;
- if (lpBuffer == NULL)
- {
- SetLastError(ERROR_INVALID_PARAMETER);
- return FALSE;
- }
-
Size = nLength * sizeof(INPUT_RECORD);
DPRINT("IntWriteConsoleInput: %lx %p\n", Size, lpNumberOfEventsWritten);
@@ -583,6 +577,13 @@
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
+ /*
+ if (lpWriteRegion == NULL)
+ {
+ SetLastError(ERROR_INVALID_PARAMETER);
+ return FALSE;
+ }
+ */
Size = dwBufferSize.Y * dwBufferSize.X * sizeof(CHAR_INFO);