mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 12:23:28 +00:00
[RTL]
- Revert r54660 and properly fix NtAllocateVirtualMemory/NtFreeVirtualMemory usage svn path=/trunk/; revision=54666
This commit is contained in:
@@ -29,7 +29,7 @@ RtlCreateQueryDebugBuffer(IN ULONG Size,
|
||||
(PVOID*)&Buf,
|
||||
0,
|
||||
&ViewSize,
|
||||
MEM_COMMIT,
|
||||
MEM_RESERVE | MEM_COMMIT,
|
||||
PAGE_READWRITE);
|
||||
if (!NT_SUCCESS(Status)) return NULL;
|
||||
|
||||
@@ -49,12 +49,13 @@ NTAPI
|
||||
RtlDestroyQueryDebugBuffer(IN PRTL_DEBUG_INFORMATION Buf)
|
||||
{
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
SIZE_T ViewSize = 0;
|
||||
|
||||
if (NULL != Buf)
|
||||
{
|
||||
Status = NtFreeVirtualMemory(NtCurrentProcess(),
|
||||
(PVOID)Buf,
|
||||
(PSIZE_T)&Buf->ViewSize, /* FIXME: not portable! */
|
||||
(PVOID*)&Buf,
|
||||
&ViewSize,
|
||||
MEM_RELEASE);
|
||||
}
|
||||
if (!NT_SUCCESS(Status))
|
||||
|
||||
Reference in New Issue
Block a user