From 7661f465e5fa286ef688b325bab041279b967633 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 19 Jul 2013 18:43:51 -0700 Subject: [PATCH] Remove STUB, add notes. --- src/protocols/rdp/compat/winpr-stream.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/protocols/rdp/compat/winpr-stream.c b/src/protocols/rdp/compat/winpr-stream.c index b85de262..b28c11bc 100644 --- a/src/protocols/rdp/compat/winpr-stream.c +++ b/src/protocols/rdp/compat/winpr-stream.c @@ -36,12 +36,17 @@ #include "winpr-stream.h" +/* + * NOTE: Because the old API did not support local allocation of the buffer + * for each stream, these compatibility implementations ignore + * the parameters of Stream_New() and Stream_Free() that provide them. + */ + wStream* Stream_New(BYTE* buffer, size_t size) { - /* STUB */ return stream_new(size); } void Stream_Free(wStream* s, BOOL bFreeBuffer) { - /* STUB */ + stream_free(s); }