aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-06-14 15:04:01 +0000
committermarha <marha@users.sourceforge.net>2010-06-14 15:04:01 +0000
commitf9a9d9e67912e77e6bccb18ee7ef8fd4d32df867 (patch)
treea00d24972898c327919d97ac12c297790f2df352
parentbaf5d0b299112d65e81a692380e4ee4885ac8050 (diff)
downloadvcxsrv-f9a9d9e67912e77e6bccb18ee7ef8fd4d32df867.tar.gz
vcxsrv-f9a9d9e67912e77e6bccb18ee7ef8fd4d32df867.tar.bz2
vcxsrv-f9a9d9e67912e77e6bccb18ee7ef8fd4d32df867.zip
Initialise g_iScreenPrivateKey
-rw-r--r--xorg-server/hw/xwin/winallpriv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/xorg-server/hw/xwin/winallpriv.c b/xorg-server/hw/xwin/winallpriv.c
index 604c5f673..6a6dc60db 100644
--- a/xorg-server/hw/xwin/winallpriv.c
+++ b/xorg-server/hw/xwin/winallpriv.c
@@ -72,6 +72,13 @@ winAllocatePrivates (ScreenPtr pScreen)
/* Intialize private structure members */
pScreenPriv->fActive = TRUE;
+ /* Reserve screen memory for our privates */
+ if (!dixRegisterPrivateKey(g_iScreenPrivateKey, PRIVATE_SCREEN, 0))
+ {
+ ErrorF ("winAllocatePrivates - dixRegisterPrivateKey () failed\n");
+ return FALSE;
+ }
+
/* Save the screen private pointer */
winSetScreenPriv (pScreen, pScreenPriv);