mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 10:45:24 +00:00
[NTOS:IO]
IopGetDeviceRelations: - Use captured parameters to probe for write. - Do not check IopInitiatePnpIrp for STATUS_PENDING. svn path=/trunk/; revision=74167
This commit is contained in:
parent
f57506f679
commit
494233b2a4
|
@ -670,9 +670,7 @@ IopGetDeviceRelations(PPLUGPLAY_CONTROL_DEVICE_RELATIONS_DATA RelationsData)
|
|||
BufferSize = RelationsData->BufferSize;
|
||||
Buffer = RelationsData->Buffer;
|
||||
|
||||
ProbeForWrite(RelationsData->Buffer,
|
||||
RelationsData->BufferSize,
|
||||
sizeof(CHAR));
|
||||
ProbeForWrite(Buffer, BufferSize, sizeof(CHAR));
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
|
@ -723,7 +721,7 @@ IopGetDeviceRelations(PPLUGPLAY_CONTROL_DEVICE_RELATIONS_DATA RelationsData)
|
|||
&IoStatusBlock,
|
||||
IRP_MN_QUERY_DEVICE_RELATIONS,
|
||||
&Stack);
|
||||
if (!NT_SUCCESS(Status) || Status == STATUS_PENDING)
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("IopInitiatePnpIrp() failed (Status 0x%08lx)\n", Status);
|
||||
goto done;
|
||||
|
|
Loading…
Reference in a new issue