[PATCH 4/5] GetCrtcGammaSize: Return 0, not garbage, on failure
Adam Jackson
ajax at redhat.com
Mon Nov 9 14:56:24 PST 2009
Signed-off-by: Adam Jackson <ajax at redhat.com>
---
src/XrrCrtc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/XrrCrtc.c b/src/XrrCrtc.c
index db9d0b4..3f048e2 100644
--- a/src/XrrCrtc.c
+++ b/src/XrrCrtc.c
@@ -167,7 +167,7 @@ XRRGetCrtcGammaSize (Display *dpy, RRCrtc crtc)
req->crtc = crtc;
if (!_XReply (dpy, (xReply *) &rep, 0, xFalse))
- rep.status = RRSetConfigFailed;
+ rep.size = 0;
UnlockDisplay (dpy);
SyncHandle ();
return rep.size;
--
1.6.5.2
More information about the xorg-devel
mailing list