summaryrefslogtreecommitdiff
path: root/src/radeon_mergedfb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/radeon_mergedfb.c')
-rw-r--r--src/radeon_mergedfb.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/radeon_mergedfb.c b/src/radeon_mergedfb.c
index 820ba4ba..51b17207 100644
--- a/src/radeon_mergedfb.c
+++ b/src/radeon_mergedfb.c
@@ -1008,8 +1008,9 @@ RADEONProcXineramaGetState(ClientPtr client)
register int n;
REQUEST_SIZE_MATCH(xPanoramiXGetStateReq);
- pWin = LookupWindow(stuff->window, client);
- if(!pWin) return BadWindow;
+ n = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
+ if (n != Success)
+ return n;
rep.type = X_Reply;
rep.length = 0;
@@ -1033,8 +1034,9 @@ RADEONProcXineramaGetScreenCount(ClientPtr client)
register int n;
REQUEST_SIZE_MATCH(xPanoramiXGetScreenCountReq);
- pWin = LookupWindow(stuff->window, client);
- if(!pWin) return BadWindow;
+ n = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
+ if (n != Success)
+ return n;
rep.type = X_Reply;
rep.length = 0;
@@ -1058,8 +1060,9 @@ RADEONProcXineramaGetScreenSize(ClientPtr client)
register int n;
REQUEST_SIZE_MATCH(xPanoramiXGetScreenSizeReq);
- pWin = LookupWindow (stuff->window, client);
- if(!pWin) return BadWindow;
+ n = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
+ if (n != Success)
+ return n;
rep.type = X_Reply;
rep.length = 0;