mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- ObpCreateDosDevicesDirectory: Check that allocation succeeded before dereference
svn path=/trunk/; revision=43031
This commit is contained in:
parent
5c57066048
commit
172aed5aa9
1 changed files with 1 additions and 0 deletions
|
@ -101,6 +101,7 @@ ObpCreateDosDevicesDirectory(VOID)
|
|||
ObSystemDeviceMap = ExAllocatePoolWithTag(NonPagedPool,
|
||||
sizeof(*ObSystemDeviceMap),
|
||||
'mDbO');
|
||||
if (!ObSystemDeviceMap) return STATUS_INSUFFICIENT_RESOURCES;
|
||||
RtlZeroMemory(ObSystemDeviceMap, sizeof(*ObSystemDeviceMap));
|
||||
|
||||
/* Return status */
|
||||
|
|
Loading…
Reference in a new issue