projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d09f34
)
- DeviceExtension should be NULL if the caller didn't specify any size for one.
author
Alex Ionescu
<aionescu@gmail.com>
Fri, 5 Aug 2005 21:16:51 +0000
(21:16 +0000)
committer
Alex Ionescu
<aionescu@gmail.com>
Fri, 5 Aug 2005 21:16:51 +0000
(21:16 +0000)
svn path=/trunk/; revision=17084
reactos/ntoskrnl/io/device.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/io/device.c
b/reactos/ntoskrnl/io/device.c
index
d4fcc47
..
ec697dd
100644
(file)
--- a/
reactos/ntoskrnl/io/device.c
+++ b/
reactos/ntoskrnl/io/device.c
@@
-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 */