summaryrefslogtreecommitdiffstats
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
parent2a4515783ab97c19129ab28da93b119f0420dcbe (diff)
downloadxrdp-proprietary-52af65580054899b808f36f2a7217b55ddf9d9eb.tar.gz
xrdp-proprietary-52af65580054899b808f36f2a7217b55ddf9d9eb.zip
use type when looking for a session
-rw-r--r--sesman/scp_v0.c2
-rw-r--r--sesman/session.c5
-rw-r--r--sesman/session.h4
3 files changed, 6 insertions, 5 deletions
diff --git a/sesman/scp_v0.c b/sesman/scp_v0.c
index ddd5f30f..5bc97113 100644
--- a/sesman/scp_v0.c
+++ b/sesman/scp_v0.c
@@ -41,7 +41,7 @@ scp_v0_process(struct SCP_CONNECTION* c, struct SCP_SESSION* s)
if (data)
{
- s_item = session_get_bydata(s->username, s->width, s->height, s->bpp);
+ s_item = session_get_bydata(s->username, s->width, s->height, s->bpp, s->type);
if (s_item != 0)
{
display = s_item->display;
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();
diff --git a/sesman/session.h b/sesman/session.h
index adc4b083..d4043146 100644
--- a/sesman/session.h
+++ b/sesman/session.h
@@ -90,9 +90,9 @@ struct session_chain
*
*/
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);
#ifndef session_find_item
- #define session_find_item(a, b, c, d) session_get_bydata(a, b, c, d);
+ #define session_find_item(a, b, c, d, e) session_get_bydata(a, b, c, d, e);
#endif
/**