projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4982c03
)
rdpsnd-server: fix broken message parsing.
author
Vic Lee
<llyzs@163.com>
Thu, 20 Feb 2014 15:33:27 +0000
(23:33 +0800)
committer
Vic Lee
<llyzs@163.com>
Thu, 20 Feb 2014 15:33:27 +0000
(23:33 +0800)
channels/rdpsnd/server/rdpsnd_main.c
patch
|
blob
|
history
diff --git
a/channels/rdpsnd/server/rdpsnd_main.c
b/channels/rdpsnd/server/rdpsnd_main.c
index
4bc7107
..
f56d407
100644
(file)
--- a/
channels/rdpsnd/server/rdpsnd_main.c
+++ b/
channels/rdpsnd/server/rdpsnd_main.c
@@
-201,12
+201,7
@@
static void* rdpsnd_server_thread(void* arg)
Stream_SetPosition(s, 0);
if (WTSVirtualChannelRead(context->priv->ChannelHandle, 0,
- (PCHAR) Stream_Buffer(s), Stream_Capacity(s), &BytesReturned))
- {
- if (BytesReturned)
- Stream_Seek(s, BytesReturned);
- }
- else
+ (PCHAR) Stream_Buffer(s), Stream_Capacity(s), &BytesReturned) == FALSE)
{
if (!BytesReturned)
break;