From 663bb3a53e0aae761d8c5342131e8d81ccf14e30 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Mon, 25 Jul 2005 21:09:21 +0000 Subject: [PATCH] Fix stupid typo-mistake, which lead to allocating only 4 bytes intead of sizeof(struct pci_pool). svn path=/trunk/; revision=16726 --- reactos/drivers/usb/cromwell/sys/linuxwrapper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/drivers/usb/cromwell/sys/linuxwrapper.c b/reactos/drivers/usb/cromwell/sys/linuxwrapper.c index 15379f2f7d2..df98b32604f 100644 --- a/reactos/drivers/usb/cromwell/sys/linuxwrapper.c +++ b/reactos/drivers/usb/cromwell/sys/linuxwrapper.c @@ -608,8 +608,8 @@ struct pci_pool *my_pci_pool_create(const char * name, struct pci_dev * pdev, si } else if (allocation < size) return 0; - retval = ExAllocatePool(NonPagedPool, sizeof(retval)); //FIXME: Should it be non-paged? - // pci_pool is rather big struct + retval = ExAllocatePool(NonPagedPool, sizeof(struct pci_pool)); // Non-paged because could be + // pci_pool is rather big struct // fill retval structure strncpy (retval->name, name, sizeof retval->name);