mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[RTL]
- Do not change RTL_HANDLE_TABLE::CommittedHandles when committing a new page of handle entries. This value must always point to the beginning of the allocation, to correctly track the entire committed range. Fixes LibreOffice Writer (and ntdll_apitest) crash. CORE-13271 #resolve svn path=/trunk/; revision=74599
This commit is contained in:
parent
10e08033ca
commit
8a30da51a0
1 changed files with 1 additions and 1 deletions
|
@ -89,6 +89,7 @@ RtlAllocateHandle(
|
|||
return NULL;
|
||||
|
||||
/* Update handle array pointers */
|
||||
HandleTable->CommittedHandles = (PRTL_HANDLE_TABLE_ENTRY)ArrayPointer;
|
||||
HandleTable->UnCommittedHandles = (PRTL_HANDLE_TABLE_ENTRY)ArrayPointer;
|
||||
HandleTable->MaxReservedHandles = (PRTL_HANDLE_TABLE_ENTRY)((ULONG_PTR)ArrayPointer + ArraySize);
|
||||
}
|
||||
|
@ -107,7 +108,6 @@ RtlAllocateHandle(
|
|||
|
||||
/* Update handle array pointers */
|
||||
HandleTable->FreeHandles = (PRTL_HANDLE_TABLE_ENTRY)ArrayPointer;
|
||||
HandleTable->CommittedHandles = (PRTL_HANDLE_TABLE_ENTRY)ArrayPointer;
|
||||
HandleTable->UnCommittedHandles = (PRTL_HANDLE_TABLE_ENTRY)((ULONG_PTR)ArrayPointer + ArraySize);
|
||||
|
||||
/* Calculate the number of entries we can store in the array */
|
||||
|
|
Loading…
Reference in a new issue