Commit f201c9e9 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

setupapi: Error out if ReturnBuffer is NULL but ReturnBufferSize is not 0.

parent a1141ee7
......@@ -168,7 +168,15 @@ BOOL WINAPI SetupQueryInfFileInformationA(PSP_INF_INFORMATION InfInformation,
*RequiredSize = size;
if (!ReturnBuffer)
{
if (ReturnBufferSize)
{
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
return TRUE;
}
if (size > ReturnBufferSize)
{
......
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