mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 16:53:05 +00:00
Allocate enough bytes for the adapter object.
svn path=/trunk/; revision=12729
This commit is contained in:
parent
2644fdc88a
commit
59aa5bd203
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: adapter.c,v 1.1 2004/12/03 20:10:43 gvg Exp $
|
/* $Id$
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -203,7 +203,7 @@ HalpAllocateAdapterEx(
|
||||||
/* Check if this is the Master Adapter, in which case we need to allocate the bitmap */
|
/* Check if this is the Master Adapter, in which case we need to allocate the bitmap */
|
||||||
if (IsMaster) {
|
if (IsMaster) {
|
||||||
/* Size due to the Bitmap + Bytes in the Bitmap Buffer (8 bytes, 64 bits)*/
|
/* Size due to the Bitmap + Bytes in the Bitmap Buffer (8 bytes, 64 bits)*/
|
||||||
BitmapSize = sizeof(RTL_BITMAP) + AllowedMapRegisters / 8;
|
BitmapSize = sizeof(RTL_BITMAP) + (AllowedMapRegisters + 7) / 8;
|
||||||
|
|
||||||
/* We will put the Bitmap Buffer after the Adapter Object for simplicity */
|
/* We will put the Bitmap Buffer after the Adapter Object for simplicity */
|
||||||
ObjectSize = sizeof(ADAPTER_OBJECT) + BitmapSize;
|
ObjectSize = sizeof(ADAPTER_OBJECT) + BitmapSize;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue