Skip to content

Commit

Permalink
Add typed resource-lookup errors for non-core resource types.
Browse files Browse the repository at this point in the history
Signed-off-by: Jamey Sharp <[email protected]>
Reviewed-by: Adam Jackson <[email protected]>
  • Loading branch information
jameysharp committed May 19, 2010
1 parent e291c56 commit c38552d
Show file tree
Hide file tree
Showing 26 changed files with 169 additions and 137 deletions.
4 changes: 4 additions & 0 deletions Xext/panoramiX.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,10 @@ void PanoramiXExtensionInit(int argc, char *argv[])
panoramiXGeneration = serverGeneration;
success = TRUE;
}
SetResourceTypeErrorValue(XRT_WINDOW, BadWindow);
SetResourceTypeErrorValue(XRT_PIXMAP, BadPixmap);
SetResourceTypeErrorValue(XRT_GC, BadGC);
SetResourceTypeErrorValue(XRT_COLORMAP, BadColor);
}

if (!success) {
Expand Down
Loading

0 comments on commit c38552d

Please sign in to comment.