mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 04:14:53 +00:00
[FSRTL]
- 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:
parent
1d814c38a6
commit
d91f3be3e6
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue