From abba73f9bcfa6e3e51f395d67f7270518bb1787d Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Mon, 15 Mar 2010 20:27:41 +0000 Subject: [PATCH] fix for session persistence --- sesman/session.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 &&