From ad9fdb1ae3d410c0a9cec29b06e446693b3aa3e8 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Fri, 1 Sep 2006 03:15:32 +0000 Subject: [PATCH] - Fix bug in RtlZero, Fill, Move memory where the last 1-3 bytes weren't being copied. svn path=/trunk/; revision=23853 --- reactos/lib/rtl/i386/rtlmem.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/lib/rtl/i386/rtlmem.s b/reactos/lib/rtl/i386/rtlmem.s index fa9d2800ca9..38cfb858894 100644 --- a/reactos/lib/rtl/i386/rtlmem.s +++ b/reactos/lib/rtl/i386/rtlmem.s @@ -122,7 +122,7 @@ _RtlFillMemory@12: /* Do the fill */ rep stosd - or ecx, ecx + or ecx, edx jnz ByteFill /* Return */ @@ -200,7 +200,7 @@ _RtlZeroMemory@8: /* Do the fill */ rep stosd - or ecx, ecx + or ecx, edx jnz ByteZero /* Return */ @@ -239,7 +239,7 @@ DoMove: /* Do the move */ rep movsd - or ecx, ecx + or ecx, edx jnz ByteMove /* Return */