summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-11-09 17:48:22 -0500
committerAdam Jackson <ajax@redhat.com>2009-11-10 15:31:05 -0500
commita8af918c0db758a667345b7c3055075124197f6c (patch)
treefb51aadd97592d4fe60b8a9411e50b39182c293d
parent7f463b2a2221065c03b6122c0cffd2fa5cb13427 (diff)
GetOutputProperty: Return the error code, not BadRequest
Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
-rw-r--r--src/XrrProperty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XrrProperty.c b/src/XrrProperty.c
index 9554f9a..1a125b2 100644
--- a/src/XrrProperty.c
+++ b/src/XrrProperty.c
@@ -272,7 +272,7 @@ XRRGetOutputProperty (Display *dpy, RROutput output,
{
UnlockDisplay (dpy);
SyncHandle ();
- return 1;
+ return ((xError *)&rep)->errorCode;
}
*prop = (unsigned char *) NULL;