Allocate mem for the structure, not only for a pointer.
authorGé van Geldorp <ge@gse.nl>
Tue, 8 Nov 2005 21:49:27 +0000 (21:49 +0000)
committerGé 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

index bd26591..580b4f7 100644 (file)
@@ -180,7 +180,7 @@ PciIdeXPdoQueryResourceRequirements(
 
        /* 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)