Commit d848e5f3 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Copy the correct number of bytes in WriteConsoleInputA.

parent d585e7a2
......@@ -156,7 +156,7 @@ BOOL WINAPI WriteConsoleInputA( HANDLE handle, const INPUT_RECORD *buffer,
BOOL ret;
if (!(recW = HeapAlloc( GetProcessHeap(), 0, count * sizeof(*recW) ))) return FALSE;
memcpy( recW, buffer, count );
memcpy( recW, buffer, count*sizeof(*recW) );
input_records_AtoW( recW, count );
ret = WriteConsoleInputW( handle, recW, count, written );
HeapFree( GetProcessHeap(), 0, recW );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment