mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 12:45:16 +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,
|
||||
&Event,
|
||||
&IoStatusBlock);
|
||||
if (!Irp) return STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
||||
/* Call driver and check if we're pending */
|
||||
Status = IoCallDriver(RealDevice, Irp);
|
||||
|
@ -692,6 +693,7 @@ RawQueryFsSizeInfo(IN PVCB Vcb,
|
|||
FALSE,
|
||||
&Event,
|
||||
&IoStatusBlock);
|
||||
if (!Irp) return STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
||||
/* Call driver and check if we're pending */
|
||||
Status = IoCallDriver(RealDevice, Irp);
|
||||
|
|
Loading…
Reference in a new issue