mirror of
https://github.com/reactos/reactos.git
synced 2026-07-06 13:44:23 +08:00
- RawQueryFsSizeInfo: Fail if we are out of memory instead of dereferencing null
svn path=/trunk/; revision=36482
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user