diff --git a/sdk/lib/rtl/memstream.c b/sdk/lib/rtl/memstream.c index 8fe4169fb16..0549424ca45 100644 --- a/sdk/lib/rtl/memstream.c +++ b/sdk/lib/rtl/memstream.c @@ -185,8 +185,7 @@ RtlReadMemoryStream( Stream->Current = (PUCHAR)Stream->Current + CopyLength; - if (BytesRead) - *BytesRead = CopyLength; + *BytesRead = CopyLength; return S_OK; }