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