diff options
author | marha <marha@users.sourceforge.net> | 2010-04-15 07:50:39 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-04-15 07:50:39 +0000 |
commit | 6412df1b3df28c6213b43821c4a98cc3857d9a3f (patch) | |
tree | d26e725c65f2166ac78d4ee4e56176712a563483 /xorg-server/dix/extension.c | |
parent | b71f397671d4b467bfac21f208d54d2dc507969c (diff) | |
download | vcxsrv-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.c | 5 |
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) |