mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
- DeviceExtension should be NULL if the caller didn't specify any size for one.
svn path=/trunk/; revision=17084
This commit is contained in:
@@ -503,7 +503,9 @@ IoCreateDevice(PDRIVER_OBJECT DriverObject,
|
||||
/* Set Device Object Data */
|
||||
CreatedDeviceObject->DeviceType = DeviceType;
|
||||
CreatedDeviceObject->Characteristics = DeviceCharacteristics;
|
||||
CreatedDeviceObject->DeviceExtension = CreatedDeviceObject + 1;
|
||||
CreatedDeviceObject->DeviceExtension = DeviceExtensionSize ?
|
||||
CreatedDeviceObject + 1 :
|
||||
NULL;
|
||||
CreatedDeviceObject->StackSize = 1;
|
||||
CreatedDeviceObject->AlignmentRequirement = 1; /* FIXME */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user