Skip to content
Snippets Groups Projects
Commit d848e5f3 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard
Browse files

Copy the correct number of bytes in WriteConsoleInputA.

parent d585e7a2
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment