https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ec9912f334aac0c5aeaaa7c9f3b8fa72f3aae501

commit ec9912f334aac0c5aeaaa7c9f3b8fa72f3aae501
Author: Pierre Schweitzer <[email protected]>
AuthorDate: Sun Oct 29 15:03:12 2017 +0100

    [RTL] Revert b3b2a23 which introduced a regression.
    Spotted by Jérome
---
 sdk/lib/rtl/memstream.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sdk/lib/rtl/memstream.c b/sdk/lib/rtl/memstream.c
index 8fe4169fb1..0549424ca4 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;
 }

Reply via email to