summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sesman/session.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sesman/session.c b/sesman/session.c
index 18f46dc4..1d487424 100644
--- a/sesman/session.c
+++ b/sesman/session.c
@@ -60,6 +60,20 @@ session_get_bydata(char* name, int width, int height, int bpp, int type)
tmp = g_sessions;
+ /* convert from SCP_SESSION_TYPE namespace to SESMAN_SESSION_TYPE namespace */
+ switch (type)
+ {
+ case SCP_SESSION_TYPE_XVNC: /* 0 */
+ type = SESMAN_SESSION_TYPE_XVNC; /* 2 */
+ break;
+ case SCP_SESSION_TYPE_XRDP: /* 1 */
+ type = SESMAN_SESSION_TYPE_XRDP; /* 1 */
+ break;
+ default:
+ lock_chain_release();
+ return 0;
+ }
+
while (tmp != 0)
{
if (g_strncmp(name, tmp->item->name, 255) == 0 &&