From 1d3e8f7e540b86f40d40134e141b2f28a6a37fab Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 16 Oct 2008 19:07:28 +0000 Subject: [PATCH] CmDeleteKey: Copy LastWriteTime from cell to KCB, instead of querying again. svn path=/trunk/; revision=36772 --- reactos/ntoskrnl/config/cmapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/config/cmapi.c b/reactos/ntoskrnl/config/cmapi.c index fce10e39b32..c3993cefc2c 100644 --- a/reactos/ntoskrnl/config/cmapi.c +++ b/reactos/ntoskrnl/config/cmapi.c @@ -1307,7 +1307,7 @@ CmDeleteKey(IN PCM_KEY_BODY KeyBody) /* Update the write time */ KeQuerySystemTime(&Parent->LastWriteTime); - KeQuerySystemTime(&Kcb->ParentKcb->KcbLastWriteTime); + Kcb->ParentKcb->KcbLastWriteTime = Parent->LastWriteTime; /* Release the cell */ HvReleaseCell(Hive, ParentCell);