Commit ab6df634 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wow64win: Fix handling NULL input32 in NtUserSendInput.

parent 7bc4ca5b
......@@ -3222,12 +3222,18 @@ NTSTATUS WINAPI wow64_NtUserSendInput( UINT *args )
INPUT *inputs = NULL;
unsigned int i;
if (size != sizeof(*inputs32))
if (size != sizeof(*inputs32) || !count)
{
set_last_error32( ERROR_INVALID_PARAMETER );
return 0;
}
if (!inputs32)
{
set_last_error32( ERROR_NOACCESS );
return 0;
}
if (count && !(inputs = Wow64AllocateTemp( count * sizeof(*inputs) )))
return 0;
......
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