[prev in list] [next in list] [prev in thread] [next in thread]
List: ros-diffs
Subject: [ros-diffs] [tkreuzer] 36584: Extend ObjTypeInfo array to 32
From: tkreuzer () svn ! reactos ! org
Date: 2008-09-28 21:25:24
Message-ID: 20080928222216.7D01E98A53 () mail ! reactos ! org
[Download RAW message or body]
Author: tkreuzer
Date: Sun Sep 28 16:25:24 2008
New Revision: 36584
URL: http://svn.reactos.org/svn/reactos?rev=36584&view=rev
Log:
Extend ObjTypeInfo array to 32 entries.
Fixes Coverity CID 538
Modified:
trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c?rev=36584&r1=36583&r2=36584&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c [iso-8859-1] Sun Sep 28 \
16:25:24 2008 @@ -20,6 +20,8 @@
/* apparently the first 10 entries are never used in windows as they are empty */
#define RESERVE_ENTRIES_COUNT 10
+#define BASE_OBJTYPE_COUNT 32
+
#define DelayExecution() \
DPRINT("%s:%i: Delay\n", __FILE__, __LINE__); \
KeDelayExecutionThread(KernelMode, FALSE, &ShortDelay)
@@ -37,7 +39,7 @@
} OBJ_TYPE_INFO, *POBJ_TYPE_INFO;
static const
-OBJ_TYPE_INFO ObjTypeInfo[] =
+OBJ_TYPE_INFO ObjTypeInfo[BASE_OBJTYPE_COUNT] =
{
{0, 0, 0, NULL}, /* 00 reserved \
entry */ {1, sizeof(DC), TAG_DC, DC_Cleanup}, /* 01 DC */
@@ -70,9 +72,8 @@
{0, 0, TAG_DRVOBJ, NULL}, /* 1c DRVOBJ, \
unused */ {0, 0, TAG_DCIOBJ, NULL}, /* 1d \
DCIOBJ, unused */ {0, 0, TAG_SPOOL, NULL}, /* \
1e SPOOL, unused */ + {0, 0, 0, NULL}, \
/* 1f reserved entry */ };
-
-#define BASE_OBJTYPE_COUNT (sizeof(ObjTypeInfo) / sizeof(ObjTypeInfo[0]))
static LARGE_INTEGER ShortDelay;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic