From 373381ed598ee4a9adba5bd951a1783a27a8c740 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Sat, 25 Dec 2004 14:22:57 +0000 Subject: [PATCH] - Fix comparsion that I broke with my last commit. svn path=/trunk/; revision=12328 --- reactos/ntoskrnl/ke/i386/kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/ke/i386/kernel.c b/reactos/ntoskrnl/ke/i386/kernel.c index 4931e8ae1ec..75f3a2ed9f6 100644 --- a/reactos/ntoskrnl/ke/i386/kernel.c +++ b/reactos/ntoskrnl/ke/i386/kernel.c @@ -296,7 +296,7 @@ KeInit1(PCHAR CommandLine, PULONG LastKernelAddress) * Make the detection of the noexecute feature more portable. */ if(KPCR->PrcbData.CpuType == 0xf && - 0 == memcpy("AuthenticAMD", KPCR->PrcbData.VendorString, 12)) + RtlCompareMemory("AuthenticAMD", KPCR->PrcbData.VendorString, 8) == 8) { if (NoExecute) {