summaryrefslogtreecommitdiff
path: root/desktop/gui_factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/gui_factory.c')
-rw-r--r--desktop/gui_factory.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/desktop/gui_factory.c b/desktop/gui_factory.c
index fe7536353..9a4fa396a 100644
--- a/desktop/gui_factory.c
+++ b/desktop/gui_factory.c
@@ -16,11 +16,18 @@ nserror gui_factory_register(struct gui_table *gt)
return NSERROR_INIT_FAILED;
}
- /* check the mandantory fields are set */
+ /* check the mandantory fields are set */
if (gt->poll == NULL) {
return NSERROR_BAD_PARAMETER;
}
+ if (gt->window_create == NULL) {
+ return NSERROR_BAD_PARAMETER;
+ }
+ if (gt->window_destroy == NULL) {
+ return NSERROR_BAD_PARAMETER;
+ }
+
/* fill in the optional entries with defaults */
if (gt->quit == NULL) {