- Fix incorrect McbMappingCompare() declaration, which was hard-casted to an incompatible prototype. It fixes the problem of crashes in generic tables code, however it does not make the actual MCB code logic any better.

svn path=/trunk/; revision=59266
This commit is contained in:
Aleksey Bragin 2013-06-20 12:38:55 +00:00
parent 1d814c38a6
commit d91f3be3e6

View file

@ -58,7 +58,7 @@ static VOID NTAPI McbMappingFree(PRTL_GENERIC_TABLE Table, PVOID Buffer)
} }
static RTL_GENERIC_COMPARE_RESULTS NTAPI McbMappingCompare static RTL_GENERIC_COMPARE_RESULTS NTAPI McbMappingCompare
(RTL_GENERIC_TABLE Table, PVOID PtrA, PVOID PtrB) (PRTL_GENERIC_TABLE Table, PVOID PtrA, PVOID PtrB)
{ {
PLARGE_MCB_MAPPING_ENTRY A = PtrA, B = PtrB; PLARGE_MCB_MAPPING_ENTRY A = PtrA, B = PtrB;
@ -253,7 +253,7 @@ FsRtlInitializeBaseMcb(IN PBASE_MCB OpaqueMcb,
Mcb->PoolType = PoolType; Mcb->PoolType = PoolType;
Mcb->MaximumPairCount = MAXIMUM_PAIR_COUNT; Mcb->MaximumPairCount = MAXIMUM_PAIR_COUNT;
RtlInitializeGenericTable(&Mcb->Mapping->Table, RtlInitializeGenericTable(&Mcb->Mapping->Table,
(PRTL_GENERIC_COMPARE_ROUTINE)McbMappingCompare, McbMappingCompare,
McbMappingAllocate, McbMappingAllocate,
McbMappingFree, McbMappingFree,
Mcb); Mcb);