mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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:
parent
3d09f34d49
commit
6477828cdd
1 changed files with 3 additions and 1 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue