projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bccddf
)
Allocate mem for the structure, not only for a pointer.
author
Gé van Geldorp
<ge@gse.nl>
Tue, 8 Nov 2005 21:49:27 +0000
(21:49 +0000)
committer
Gé van Geldorp
<ge@gse.nl>
Tue, 8 Nov 2005 21:49:27 +0000
(21:49 +0000)
svn path=/trunk/; revision=19068
reactos/drivers/storage/pciidex/pdo.c
patch
|
blob
|
history
diff --git
a/reactos/drivers/storage/pciidex/pdo.c
b/reactos/drivers/storage/pciidex/pdo.c
index
bd26591
..
580b4f7
100644
(file)
--- a/
reactos/drivers/storage/pciidex/pdo.c
+++ b/
reactos/drivers/storage/pciidex/pdo.c
@@
-180,7
+180,7
@@
PciIdeXPdoQueryResourceRequirements(
/* FIXME: what to do with BusMasterPortBase? */
- ListSize = sizeof(
P
IO_RESOURCE_REQUIREMENTS_LIST)
+ ListSize = sizeof(IO_RESOURCE_REQUIREMENTS_LIST)
+ 2 * sizeof(IO_RESOURCE_DESCRIPTOR);
RequirementsList = ExAllocatePool(PagedPool, ListSize);
if (!RequirementsList)