diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2013-08-01 18:05:13 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2013-08-01 18:05:13 -0700 |
commit | a8c3a05e509dd4ee5bfb9eac20194f4c70319aac (patch) | |
tree | 7e5714476c74ab2ad3c32f24701648da57367434 /xorg/server/module/rdpDraw.c | |
parent | f0a91c444d87bd09961185d888f87799ab817790 (diff) | |
download | xrdp-proprietary-a8c3a05e509dd4ee5bfb9eac20194f4c70319aac.tar.gz xrdp-proprietary-a8c3a05e509dd4ee5bfb9eac20194f4c70319aac.zip |
xorg driver, keyboard / mouse cleanup
Diffstat (limited to 'xorg/server/module/rdpDraw.c')
-rw-r--r-- | xorg/server/module/rdpDraw.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/xorg/server/module/rdpDraw.c b/xorg/server/module/rdpDraw.c index 2a87d267..08fe4b85 100644 --- a/xorg/server/module/rdpDraw.c +++ b/xorg/server/module/rdpDraw.c @@ -91,7 +91,14 @@ rdpGetDevFromScreen(ScreenPtr pScreen) ScrnInfoPtr pScrn; rdpPtr dev; - pScrn = xf86Screens[pScreen->myNum]; + if (pScreen == NULL) + { + pScrn = xf86Screens[0]; + } + else + { + pScrn = xf86Screens[pScreen->myNum]; + } dev = XRDPPTR(pScrn); return dev; } |