[ros-diffs] [gvg] 19068: Allocate mem for the structure,
not only for a pointer.
gvg at svn.reactos.com
gvg at svn.reactos.com
Tue Nov 8 22:49:36 CET 2005
Allocate mem for the structure, not only for a pointer.
Modified: trunk/reactos/drivers/storage/pciidex/pdo.c
_____
Modified: trunk/reactos/drivers/storage/pciidex/pdo.c
--- trunk/reactos/drivers/storage/pciidex/pdo.c 2005-11-08 21:07:11 UTC
(rev 19067)
+++ trunk/reactos/drivers/storage/pciidex/pdo.c 2005-11-08 21:49:27 UTC
(rev 19068)
@@ -180,7 +180,7 @@
/* FIXME: what to do with BusMasterPortBase? */
- ListSize = sizeof(PIO_RESOURCE_REQUIREMENTS_LIST)
+ ListSize = sizeof(IO_RESOURCE_REQUIREMENTS_LIST)
+ 2 * sizeof(IO_RESOURCE_DESCRIPTOR);
RequirementsList = ExAllocatePool(PagedPool, ListSize);
if (!RequirementsList)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051108/55bf0a8d/attachment.html
More information about the Ros-diffs
mailing list