summaryrefslogtreecommitdiffstats
path: root/xrdp/parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'xrdp/parse.h')
-rw-r--r--xrdp/parse.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xrdp/parse.h b/xrdp/parse.h
index 28c2d49c..605486b6 100644
--- a/xrdp/parse.h
+++ b/xrdp/parse.h
@@ -77,6 +77,12 @@ struct stream
s->p++; \
}
+#define in_sint16_le(s, v) \
+{ \
+ v = *((signed short*)(s->p)); \
+ s->p += 2; \
+}
+
#define in_uint16_le(s, v) \
{ \
v = *((unsigned short*)(s->p)); \