mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 15:45:20 +00:00
- RawQueryFsSizeInfo: Fail if we are out of memory instead of dereferencing null
svn path=/trunk/; revision=36482
This commit is contained in:
parent
74897bfee4
commit
85033039ab
|
@ -652,6 +652,7 @@ RawQueryFsSizeInfo(IN PVCB Vcb,
|
||||||
FALSE,
|
FALSE,
|
||||||
&Event,
|
&Event,
|
||||||
&IoStatusBlock);
|
&IoStatusBlock);
|
||||||
|
if (!Irp) return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
|
||||||
/* Call driver and check if we're pending */
|
/* Call driver and check if we're pending */
|
||||||
Status = IoCallDriver(RealDevice, Irp);
|
Status = IoCallDriver(RealDevice, Irp);
|
||||||
|
@ -692,6 +693,7 @@ RawQueryFsSizeInfo(IN PVCB Vcb,
|
||||||
FALSE,
|
FALSE,
|
||||||
&Event,
|
&Event,
|
||||||
&IoStatusBlock);
|
&IoStatusBlock);
|
||||||
|
if (!Irp) return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
|
||||||
/* Call driver and check if we're pending */
|
/* Call driver and check if we're pending */
|
||||||
Status = IoCallDriver(RealDevice, Irp);
|
Status = IoCallDriver(RealDevice, Irp);
|
||||||
|
|
Loading…
Reference in a new issue