summaryrefslogtreecommitdiffstats
path: root/sesman/session.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2009-09-06 01:57:05 +0000
committerjsorg71 <jsorg71>2009-09-06 01:57:05 +0000
commit52af65580054899b808f36f2a7217b55ddf9d9eb (patch)
treea4d62ed204b279b6736fa05fd3ae5e5b3eabd99b /sesman/session.c
parent2a4515783ab97c19129ab28da93b119f0420dcbe (diff)
downloadxrdp-proprietary-52af65580054899b808f36f2a7217b55ddf9d9eb.tar.gz
xrdp-proprietary-52af65580054899b808f36f2a7217b55ddf9d9eb.zip
use type when looking for a session
Diffstat (limited to 'sesman/session.c')
-rw-r--r--sesman/session.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sesman/session.c b/sesman/session.c
index d91485ae..474b28e2 100644
--- a/sesman/session.c
+++ b/sesman/session.c
@@ -51,7 +51,7 @@ static int g_sync_result;
/******************************************************************************/
struct session_item* DEFAULT_CC
-session_get_bydata(char* name, int width, int height, int bpp)
+session_get_bydata(char* name, int width, int height, int bpp, int type)
{
struct session_chain* tmp;
@@ -65,7 +65,8 @@ session_get_bydata(char* name, int width, int height, int bpp)
if (g_strncmp(name, tmp->item->name, 255) == 0 &&
tmp->item->width == width &&
tmp->item->height == height &&
- tmp->item->bpp == bpp)
+ tmp->item->bpp == bpp &&
+ tmp->item->type == type)
{
/*THREAD-FIX release chain lock */
lock_chain_release();