mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Fix stupid typo-mistake, which lead to allocating only 4 bytes intead of sizeof(struct pci_pool).
svn path=/trunk/; revision=16726
This commit is contained in:
parent
38cd13eb67
commit
663bb3a53e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue