Commit 88e28d97 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

setupapi: Avoid debugstr buffer overflow.

parent df05902b
......@@ -1853,13 +1853,8 @@ BOOL WINAPI SetupGetBinaryField( PINFCONTEXT context, DWORD index, BYTE *buffer,
}
buffer[i - index] = value;
}
if (TRACE_ON(setupapi))
{
TRACE( "%p/%p/%d/%d index %d returning",
context->Inf, context->CurrentInf, context->Section, context->Line, index );
for (i = index; i < line->nb_fields; i++) TRACE( " %02x", buffer[i - index] );
TRACE( "\n" );
}
TRACE( "%p/%p/%d/%d index %d\n",
context->Inf, context->CurrentInf, context->Section, context->Line, index );
return TRUE;
}
......
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