aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/dix/extension.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-04-15 07:50:39 +0000
committermarha <marha@users.sourceforge.net>2010-04-15 07:50:39 +0000
commit6412df1b3df28c6213b43821c4a98cc3857d9a3f (patch)
treed26e725c65f2166ac78d4ee4e56176712a563483 /xorg-server/dix/extension.c
parentb71f397671d4b467bfac21f208d54d2dc507969c (diff)
downloadvcxsrv-6412df1b3df28c6213b43821c4a98cc3857d9a3f.tar.gz
vcxsrv-6412df1b3df28c6213b43821c4a98cc3857d9a3f.tar.bz2
vcxsrv-6412df1b3df28c6213b43821c4a98cc3857d9a3f.zip
Git update 15/4/2010
Diffstat (limited to 'xorg-server/dix/extension.c')
-rw-r--r--xorg-server/dix/extension.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xorg-server/dix/extension.c b/xorg-server/dix/extension.c
index fb83af148..f34866586 100644
--- a/xorg-server/dix/extension.c
+++ b/xorg-server/dix/extension.c
@@ -83,8 +83,11 @@ AddExtension(char *name, int NumEvents, int NumErrors,
if (!MainProc || !SwappedMainProc || !MinorOpcodeProc)
return((ExtensionEntry *) NULL);
if ((lastEvent + NumEvents > LAST_EVENT) ||
- (unsigned)(lastError + NumErrors > LAST_ERROR))
+ (unsigned)(lastError + NumErrors > LAST_ERROR)) {
+ LogMessage(X_ERROR, "Not enabling extension %s: maximum number of "
+ "events or errors exceeded.\n", name);
return((ExtensionEntry *) NULL);
+ }
ext = xalloc(sizeof(ExtensionEntry));
if (!ext)