Fix stupid typo-mistake, which lead to allocating only 4 bytes intead of sizeof(struct pci_pool). Modified: trunk/reactos/drivers/usb/cromwell/sys/linuxwrapper.c _____
Modified: trunk/reactos/drivers/usb/cromwell/sys/linuxwrapper.c --- trunk/reactos/drivers/usb/cromwell/sys/linuxwrapper.c 2005-07-25 20:28:29 UTC (rev 16725) +++ trunk/reactos/drivers/usb/cromwell/sys/linuxwrapper.c 2005-07-25 21:09:21 UTC (rev 16726) @@ -608,8 +608,8 @@
} 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);