mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
- ObpCreateDosDevicesDirectory: Check that allocation succeeded before dereference
svn path=/trunk/; revision=43031
This commit is contained in:
@@ -101,6 +101,7 @@ ObpCreateDosDevicesDirectory(VOID)
|
||||
ObSystemDeviceMap = ExAllocatePoolWithTag(NonPagedPool,
|
||||
sizeof(*ObSystemDeviceMap),
|
||||
'mDbO');
|
||||
if (!ObSystemDeviceMap) return STATUS_INSUFFICIENT_RESOURCES;
|
||||
RtlZeroMemory(ObSystemDeviceMap, sizeof(*ObSystemDeviceMap));
|
||||
|
||||
/* Return status */
|
||||
|
||||
Reference in New Issue
Block a user