If (n)curses wasn't available at compile time:
- print sensible information
- fall back to user backend
diff --git a/programs/wineconsole/curses.c b/programs/wineconsole/curses.c
index 676f1bb..8c491fd 100644
--- a/programs/wineconsole/curses.c
+++ b/programs/wineconsole/curses.c
@@ -717,10 +717,10 @@
* Initialisation part II: creation of window.
*
*/
-BOOL WCCURSES_InitBackend(struct inner_data* data)
+enum init_return WCCURSES_InitBackend(struct inner_data* data)
{
data->private = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(struct inner_data_curse));
- if (!data->private) return FALSE;
+ if (!data->private) return init_failed;
data->fnMainLoop = WCCURSES_MainLoop;
data->fnPosCursor = WCCURSES_PosCursor;
@@ -737,7 +737,7 @@
(obj_handle_t*)&PRIVATE(data)->hInput))
{
WINE_FIXME("Cannot open 0\n");
- return 0;
+ return init_failed;
}
/* FIXME: should find a good way to enable buffer scrolling
@@ -782,12 +782,12 @@
mousemask(0, &PRIVATE(data)->initial_mouse_mask);
}
- return TRUE;
+ return init_success;
}
#else
BOOL WCCURSES_InitBackend(struct inner_data* data)
{
- return FALSE;
+ return init_not_supported;
}
#endif