From a8c3a05e509dd4ee5bfb9eac20194f4c70319aac Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Thu, 1 Aug 2013 18:05:13 -0700 Subject: xorg driver, keyboard / mouse cleanup --- xorg/server/module/rdpDraw.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'xorg/server/module/rdpDraw.c') 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; } -- cgit v1.2.1