diff options
author | marha <marha@users.sourceforge.net> | 2010-06-14 15:04:01 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-06-14 15:04:01 +0000 |
commit | f9a9d9e67912e77e6bccb18ee7ef8fd4d32df867 (patch) | |
tree | a00d24972898c327919d97ac12c297790f2df352 | |
parent | baf5d0b299112d65e81a692380e4ee4885ac8050 (diff) | |
download | vcxsrv-f9a9d9e67912e77e6bccb18ee7ef8fd4d32df867.tar.gz vcxsrv-f9a9d9e67912e77e6bccb18ee7ef8fd4d32df867.tar.bz2 vcxsrv-f9a9d9e67912e77e6bccb18ee7ef8fd4d32df867.zip |
Initialise g_iScreenPrivateKey
-rw-r--r-- | xorg-server/hw/xwin/winallpriv.c | 7 |
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);
|