summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-09-16 17:11:10 -0500
committerJeremy Huddleston <jeremyhu@apple.com>2011-09-19 19:23:54 -0700
commit4568d05dd679388779ff3648775d7c48c8d84940 (patch)
tree263dd91348bf28eb67e4748cf2eeedbae4e7adfb /src
parent72ac05704106afb6cc8f1db7954f23d4834dcbcc (diff)
NestedCreateScreenResources needs to return a value
This Fixes error detection in NestedCreateScreenResources. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src')
-rw-r--r--src/driver.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/driver.c b/src/driver.c
index eb4c208..e882ccf 100644
--- a/src/driver.c
+++ b/src/driver.c
@@ -634,8 +634,13 @@ NestedCreateScreenResources(ScreenPtr pScreen) {
ret = pScreen->CreateScreenResources(pScreen);
pScreen->CreateScreenResources = NestedCreateScreenResources;
- shadowAdd(pScreen, pScreen->GetScreenPixmap(pScreen), pNested->update,
- /*pNested->window*/ 0, 0, 0);
+ if(!shadowAdd(pScreen, pScreen->GetScreenPixmap(pScreen),
+ pNested->update, NULL, 0, 0)) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR, "NestedCreateScreenResources failed to shadowAdd.\n");
+ return FALSE;
+ }
+
+ return ret;
}
static void