[RTL] Revert b3b2a23 which introduced a regression.
authorPierre Schweitzer <pierre@reactos.org>
Sun, 29 Oct 2017 14:03:12 +0000 (15:03 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 29 Oct 2017 14:03:12 +0000 (15:03 +0100)
Spotted by J√©rome

sdk/lib/rtl/memstream.c

index 8fe4169..0549424 100644 (file)
@@ -185,8 +185,7 @@ RtlReadMemoryStream(
 
     Stream->Current = (PUCHAR)Stream->Current + CopyLength;
 
-    if (BytesRead)
-        *BytesRead = CopyLength;
+    *BytesRead = CopyLength;
 
     return S_OK;
 }