Allocate mem for the structure, not only for a pointer.
[reactos.git] / 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)