From 5244a29dad5c6ca9c0f428bbbda0e16728ab5091 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Fri, 1 Sep 2006 12:38:57 +0000 Subject: [PATCH] - Fix bugs in RtlCompareMemory, RtlCompareMemoryULong svn path=/trunk/; revision=23864 --- reactos/lib/rtl/i386/rtlmem.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/rtl/i386/rtlmem.s b/reactos/lib/rtl/i386/rtlmem.s index 38cfb858894..01a6c4e506e 100644 --- a/reactos/lib/rtl/i386/rtlmem.s +++ b/reactos/lib/rtl/i386/rtlmem.s @@ -67,7 +67,7 @@ NotEqual2: /* Remember how many mathced */ dec esi - sub esi, [esp+20] + sub esi, [esp+12] /* Return count */ mov eax, esi @@ -89,7 +89,7 @@ _RtlCompareMemoryUlong@12: /* Do the compare and check result */ repe scasd jz Done - sub esi, 4 + sub edi, 4 /* Return count */ Done: