Size = FIELD_OFFSET(DEVICE_RELATIONS, Objects) + (sizeof(PDEVICE_OBJECT) * __max(Count, 1));
- Relations = ExAllocatePoolWithTag(PagedPool, Size, FDO_POOL);
+ Relations = __AllocatePoolWithTag(PagedPool, Size, FDO_POOL);
status = STATUS_NO_MEMORY;
if (Relations == NULL)
if (StackLocation->Parameters.QueryDeviceRelations.Type != TargetDeviceRelation)
goto done;
- Relations = ExAllocatePoolWithTag(PagedPool, sizeof(DEVICE_RELATIONS), PDO_POOL);
+ Relations = __AllocatePoolWithTag(PagedPool, sizeof(DEVICE_RELATIONS), PDO_POOL);
status = STATUS_NO_MEMORY;
if (Relations == NULL)
goto done;
}
- Buffer = ExAllocatePoolWithTag(PagedPool, MAXTEXTLEN, PDO_POOL);
+ Buffer = __AllocatePoolWithTag(PagedPool, MAXTEXTLEN, PDO_POOL);
status = STATUS_NO_MEMORY;
if (Buffer == NULL)
goto done;
}
- Buffer = ExAllocatePoolWithTag(PagedPool, Id.MaximumLength, PDO_POOL);
+ Buffer = __AllocatePoolWithTag(PagedPool, Id.MaximumLength, PDO_POOL);
status = STATUS_NO_MEMORY;
if (Buffer == NULL)
UNREFERENCED_PARAMETER(Pdo);
- Info = ExAllocatePoolWithTag(PagedPool, sizeof(PNP_BUS_INFORMATION), PDO_POOL);
+ Info = __AllocatePoolWithTag(PagedPool, sizeof(PNP_BUS_INFORMATION), PDO_POOL);
status = STATUS_NO_MEMORY;
if (Info == NULL)
__analysis_assume(PoolType == NonPagedPool ||
PoolType == PagedPool);
+#if (_MSC_VER >= 1928) // VS 16.9 (EWDK 20344 or later)
+ Buffer = ExAllocatePoolUninitialized(PoolType, NumberOfBytes, Tag);
+#else
#pragma warning(suppress:28160) // annotation error
Buffer = ExAllocatePoolWithTag(PoolType, NumberOfBytes, Tag);
+#endif
if (Buffer == NULL)
return NULL;