diff options
author | jsorg71 <jsorg71> | 2009-09-06 01:57:05 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2009-09-06 01:57:05 +0000 |
commit | 52af65580054899b808f36f2a7217b55ddf9d9eb (patch) | |
tree | a4d62ed204b279b6736fa05fd3ae5e5b3eabd99b /sesman/session.c | |
parent | 2a4515783ab97c19129ab28da93b119f0420dcbe (diff) | |
download | xrdp-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.c | 5 |
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(); |