From 7af1a71e3368bc4336ccd6a8854a85539f61a46c Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Sun, 21 Nov 2004 17:47:22 +0000 Subject: [PATCH] Revert: - Fix prototype of FsRtlInitializeLargeMcb and FsRtlInitializeMcb. svn path=/trunk/; revision=11752 --- reactos/include/ddk/fsfuncs.h | 6 +++--- reactos/ntoskrnl/fs/mcb.c | 19 ++++++------------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/reactos/include/ddk/fsfuncs.h b/reactos/include/ddk/fsfuncs.h index 1ce3f251962..38b289cc5c7 100644 --- a/reactos/include/ddk/fsfuncs.h +++ b/reactos/include/ddk/fsfuncs.h @@ -1,6 +1,6 @@ #ifndef __INCLUDE_DDK_FSFUNCS_H #define __INCLUDE_DDK_FSFUNCS_H -/* $Id: fsfuncs.h,v 1.29 2004/11/21 16:34:55 navaraf Exp $ */ +/* $Id: fsfuncs.h,v 1.30 2004/11/21 17:47:22 navaraf Exp $ */ #define FlagOn(x,f) ((x) & (f)) #include @@ -336,11 +336,11 @@ FsRtlInitializeFileLock ( ); VOID STDCALL -FsRtlInitializeLargeMcb(IN PLARGE_MCB *Mcb, +FsRtlInitializeLargeMcb(IN PLARGE_MCB Mcb, IN POOL_TYPE PoolType); VOID STDCALL -FsRtlInitializeMcb (IN PMCB *Mcb, +FsRtlInitializeMcb (IN PMCB Mcb, IN POOL_TYPE PoolType); VOID STDCALL diff --git a/reactos/ntoskrnl/fs/mcb.c b/reactos/ntoskrnl/fs/mcb.c index e66b0d08e0e..9376320b565 100644 --- a/reactos/ntoskrnl/fs/mcb.c +++ b/reactos/ntoskrnl/fs/mcb.c @@ -1,4 +1,4 @@ -/* $Id: mcb.c,v 1.15 2004/11/21 16:34:56 navaraf Exp $ +/* $Id: mcb.c,v 1.16 2004/11/21 17:47:22 navaraf Exp $ * * reactos/ntoskrnl/fs/mcb.c * @@ -92,18 +92,11 @@ FsRtlGetNextMcbEntry (IN PMCB Mcb, * @unimplemented */ VOID STDCALL -FsRtlInitializeLargeMcb(IN PLARGE_MCB *Mcb, +FsRtlInitializeLargeMcb(IN PLARGE_MCB Mcb, IN POOL_TYPE PoolType) { - PLARGE_MCB NewMcb; - NewMcb = ExAllocatePool(PagedPool, sizeof(LARGE_MCB)); - if (NewMcb != NULL) - { - ExInitializeFastMutex(&NewMcb->FastMutex); - NewMcb->PoolType = PoolType; - UNIMPLEMENTED; - } - *Mcb = NewMcb; + UNIMPLEMENTED; + Mcb->PoolType = PoolType; } /* @@ -111,10 +104,10 @@ FsRtlInitializeLargeMcb(IN PLARGE_MCB *Mcb, * @implemented */ VOID STDCALL -FsRtlInitializeMcb (IN PMCB *Mcb, +FsRtlInitializeMcb (IN PMCB Mcb, IN POOL_TYPE PoolType) { - FsRtlInitializeLargeMcb((PLARGE_MCB *)Mcb, PoolType); + FsRtlInitializeLargeMcb(& Mcb->LargeMcb, PoolType); }