diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-09-16 17:11:10 -0500 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-09-19 19:23:54 -0700 |
commit | 4568d05dd679388779ff3648775d7c48c8d84940 (patch) | |
tree | 263dd91348bf28eb67e4748cf2eeedbae4e7adfb /src | |
parent | 72ac05704106afb6cc8f1db7954f23d4834dcbcc (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.c | 9 |
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 |